Skip to content

Commit

Permalink
Move out SpecialItemModel from typedefs.
Browse files Browse the repository at this point in the history
  • Loading branch information
yujunetee committed Oct 16, 2024
1 parent 45f2e8d commit 97a1eba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/src/constants/typedefs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import 'package:flutter/widgets.dart';
import 'package:photo_manager/photo_manager.dart' show PermissionState;
import 'package:provider/provider.dart';

import './enums.dart';

/// Mirroring [ChangeNotifierProvider].
typedef CNP<T extends ChangeNotifier?> = ChangeNotifierProvider<T>;

Expand Down Expand Up @@ -78,8 +76,3 @@ typedef AssetsChangeRefreshPredicate<Path> = bool Function(
MethodCall call,
Path? path,
);

typedef SpecialItemModel = ({
SpecialItemPosition position,
Widget item,
});
5 changes: 5 additions & 0 deletions lib/src/delegates/asset_picker_builder_delegate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2476,3 +2476,8 @@ class DefaultAssetPickerBuilderDelegate
);
}
}

typedef SpecialItemModel = ({
SpecialItemPosition position,
Widget item,
});

0 comments on commit 97a1eba

Please sign in to comment.