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:
shenlong
2026-05-12 00:47:24 +07:00
committed by GitHub
parent 7837d40f57
commit 12f7b2a005
122 changed files with 774 additions and 263 deletions
@@ -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));