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.') {
if (selectedAssets != null && selectedAssets.isNotEmpty) {
_selectedAssets = selectedAssets.toList();
}
}