mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
chore: add always_put_control_body_on_new_line lint (#28352)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
@@ -48,7 +48,9 @@ class MultiSelectState {
|
||||
|
||||
@override
|
||||
bool operator ==(covariant MultiSelectState other) {
|
||||
if (identical(this, other)) return true;
|
||||
if (identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
final setEquals = const DeepCollectionEquality().equals;
|
||||
|
||||
return setEquals(other.selectedAssets, selectedAssets) &&
|
||||
@@ -124,7 +126,9 @@ class MultiSelectNotifier extends Notifier<MultiSelectState> {
|
||||
}
|
||||
|
||||
void toggleBucketSelectionByAssets(List<BaseAsset> bucketAssets) {
|
||||
if (bucketAssets.isEmpty) return;
|
||||
if (bucketAssets.isEmpty) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if all assets in this bucket are currently selected
|
||||
final allSelected = bucketAssets.every((asset) => state.selectedAssets.contains(asset));
|
||||
@@ -150,7 +154,9 @@ class MultiSelectNotifier extends Notifier<MultiSelectState> {
|
||||
final bucketSelectionProvider = Provider.family<bool, List<BaseAsset>>((ref, bucketAssets) {
|
||||
final selectedAssets = ref.watch(multiSelectProvider.select((s) => s.selectedAssets));
|
||||
|
||||
if (bucketAssets.isEmpty) return false;
|
||||
if (bucketAssets.isEmpty) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check if all assets in the bucket are selected
|
||||
return bucketAssets.every((asset) => selectedAssets.contains(asset));
|
||||
|
||||
Reference in New Issue
Block a user