AssetPickerViewerBuilderDelegate<Asset, Path> constructor
AssetPickerViewerBuilderDelegate<Asset, Path> ({
- required List<
Asset> previewAssets, - required ThemeData themeData,
- required int currentIndex,
- AssetPickerProvider<
Asset, Path> ? selectorProvider, - AssetPickerViewerProvider<
Asset> ? provider, - List<
Asset> ? selectedAssets, - int? maxAssets,
- bool shouldReversePreview = false,
- AssetSelectPredicate<
Asset> ? selectPredicate,
Implementation
AssetPickerViewerBuilderDelegate({
required this.previewAssets,
required this.themeData,
required this.currentIndex,
this.selectorProvider,
this.provider,
this.selectedAssets,
this.maxAssets,
this.shouldReversePreview = false,
this.selectPredicate,
}) : assert(previewAssets.isNotEmpty),
assert(currentIndex >= 0),
assert(maxAssets == null || maxAssets > 0);