DefaultAssetPickerProvider.forTest constructor

  1. @visibleForTesting
DefaultAssetPickerProvider.forTest({
  1. List<AssetEntity>? selectedAssets,
  2. RequestType requestType = RequestType.image,
  3. SortPathDelegate<AssetPathEntity>? sortPathDelegate = SortPathDelegate.common,
  4. bool sortPathsByModifiedDate = false,
  5. PMFilter? filterOptions,
  6. int maxAssets = defaultMaxAssetsCount,
  7. int pageSize = 80,
  8. ThumbnailSize pathThumbnailSize = defaultPathThumbnailSize,
})

Implementation

@visibleForTesting
DefaultAssetPickerProvider.forTest({
  super.selectedAssets,
  this.requestType = RequestType.image,
  this.sortPathDelegate = SortPathDelegate.common,
  this.sortPathsByModifiedDate = false,
  this.filterOptions,
  super.maxAssets,
  super.pageSize = 80,
  super.pathThumbnailSize,
}) {
  Singleton.sortPathDelegate = sortPathDelegate ?? SortPathDelegate.common;
}