DefaultAssetPickerProvider constructor
DefaultAssetPickerProvider({
- List<
AssetEntity> ? selectedAssets, - int maxAssets = defaultMaxAssetsCount,
- int pageSize = defaultAssetsPerPage,
- ThumbnailSize pathThumbnailSize = defaultPathThumbnailSize,
- RequestType requestType = RequestType.image,
- SortPathDelegate<
AssetPathEntity> ? sortPathDelegate = SortPathDelegate.common, - FilterOptionGroup? filterOptions,
Implementation
DefaultAssetPickerProvider({
super.selectedAssets,
super.maxAssets,
super.pageSize,
super.pathThumbnailSize,
this.requestType = RequestType.image,
this.sortPathDelegate = SortPathDelegate.common,
this.filterOptions,
}) {
Singleton.sortPathDelegate = sortPathDelegate ?? SortPathDelegate.common;
// Call [getAssetList] with route duration when constructing.
Future<void>(() async {
await getPaths();
await getAssetsFromCurrentPath();
});
}