AssetPickerProvider<Asset, Path> constructor

AssetPickerProvider<Asset, Path>({
  1. int maxAssets = defaultMaxAssetsCount,
  2. int pageSize = defaultAssetsPerPage,
  3. ThumbnailSize pathThumbnailSize = defaultPathThumbnailSize,
  4. 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.'),
      previousSelectedAssets =
          selectedAssets?.toList(growable: false) ?? List<Asset>.empty(),
      _selectedAssets =
          selectedAssets?.toList() ?? List<Asset>.empty(growable: true);