AssetPickerProvider<Asset, Path> constructor
AssetPickerProvider<Asset, Path> ({
- int maxAssets = defaultMaxAssetsCount,
- int pageSize = defaultAssetsPerPage,
- ThumbnailSize pathThumbnailSize = defaultPathThumbnailSize,
- List<
Asset> ? selectedAssets,
Implementation
AssetPickerProvider({
this.maxAssets = defaultMaxAssetsCount,
this.pageSize = defaultAssetsPerPage,
this.pathThumbnailSize = defaultPathThumbnailSize,
List<Asset>? selectedAssets,
}) : assert(maxAssets > 0, 'maxAssets must be greater than 0.'),
assert(pageSize > 0, 'pageSize must be greater than 0.'),
previousSelectedAssets =
selectedAssets?.toList(growable: false) ?? List<Asset>.empty(),
_selectedAssets =
selectedAssets?.toList() ?? List<Asset>.empty(growable: true);