File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -1418,12 +1418,16 @@ class DefaultAssetPickerBuilderDelegate
1418
1418
final PathWrapper <AssetPathEntity >? currentWrapper = p.currentPath;
1419
1419
final AssetPathEntity ? currentPathEntity = currentWrapper? .path;
1420
1420
1421
- final prepandSpecialItemModels = specialItemModels.where (
1422
- (model) => model.position == SpecialItemPosition .prepend,
1423
- );
1424
- final appendSpecialItemModels = specialItemModels.where (
1425
- (model) => model.position == SpecialItemPosition .append,
1426
- );
1421
+ final prependItems = < SpecialItemModel > [];
1422
+ final appendItems = < SpecialItemModel > [];
1423
+ for (final model in specialItemModels) {
1424
+ switch (model.position) {
1425
+ case SpecialItemPosition .prepend:
1426
+ prependItems.add (model);
1427
+ case SpecialItemPosition .append:
1428
+ appendItems.add (model);
1429
+ }
1430
+ }
1427
1431
1428
1432
if (specialItemModels.isNotEmpty) {
1429
1433
if (prepandSpecialItemModels.isNotEmpty) {
You can’t perform that action at this time.
0 commit comments