AssetPickerProvider<Asset, Path> constructor

AssetPickerProvider<Asset, Path>({
  1. int maxAssets = 9,
  2. int pageSize = 320,
  3. int pathThumbSize = 80,
  4. List<Asset>? selectedAssets,
})

Implementation

AssetPickerProvider({
  this.maxAssets = 9,
  this.pageSize = 320,
  this.pathThumbSize = 80,
  List<Asset>? selectedAssets,
}) {
  if (selectedAssets?.isNotEmpty == true) {
    _selectedAssets = List<Asset>.from(selectedAssets!);
  }
}