AssetPickerViewerBuilderDelegate<Asset, Path> constructor

AssetPickerViewerBuilderDelegate<Asset, Path>({
  1. required List<Asset> previewAssets,
  2. required ThemeData themeData,
  3. required int currentIndex,
  4. AssetPickerProvider<Asset, Path>? selectorProvider,
  5. AssetPickerViewerProvider<Asset>? provider,
  6. List<Asset>? selectedAssets,
  7. int? maxAssets,
  8. bool shouldReversePreview = false,
  9. 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);