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(maxAssets == null || maxAssets > 0),
assert(currentIndex >= 0);