DefaultAssetPickerProvider class
Constructors
-
DefaultAssetPickerProvider({List<AssetEntity>? selectedAssets, int maxAssets = defaultMaxAssetsCount, int pageSize = defaultAssetsPerPage, ThumbnailSize pathThumbnailSize = defaultPathThumbnailSize, RequestType requestType = RequestType.image, SortPathDelegate<AssetPathEntity>? sortPathDelegate = SortPathDelegate.common, bool sortPathsByModifiedDate = false, PMFilter? filterOptions, Duration initializeDelayDuration = const Duration(milliseconds: 250)})
-
-
DefaultAssetPickerProvider.forTest({List<AssetEntity>? selectedAssets, RequestType requestType = RequestType.image, SortPathDelegate<AssetPathEntity>? sortPathDelegate = SortPathDelegate.common, bool sortPathsByModifiedDate = false, PMFilter? filterOptions, int maxAssets = defaultMaxAssetsCount, int pageSize = 80, ThumbnailSize pathThumbnailSize = defaultPathThumbnailSize})
-
Properties
-
currentAssets
↔ List<AssetEntity>
-
Assets under current path entity.
正在查看的资源路径下的所有资源
getter/setter pairinherited
-
currentAssetsListPage
→ int
-
The current page for assets list.
当前加载的资源列表分页数
no setterinherited
-
currentPath
↔ PathWrapper<AssetPathEntity>?
-
The path which is currently using.
正在查看的资源路径
getter/setter pairinherited-getter
-
filterOptions
→ PMFilter?
-
Filter options for the picker.
选择器的筛选条件
final
-
hasAssetsToDisplay
↔ bool
-
Whether there are any assets can be displayed.
是否有资源可供显示
getter/setter pairinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
hasListeners
→ bool
-
Whether any listeners are currently registered.
no setterinherited
-
hasMoreToLoad
→ bool
-
Whether more assets are waiting for a load.
是否还有更多资源可以加载
no setterinherited
-
isAssetsEmpty
↔ bool
-
Whether there are assets on the devices.
设备上是否有资源文件
getter/setter pairinherited
-
isSelectedNotEmpty
→ bool
-
选中资源是否为空
no setterinherited
-
maxAssets
→ int
-
Maximum count for asset selection.
资源选择的最大数量
finalinherited
-
pageSize
→ int
-
Assets should be loaded per page.
资源选择的最大数量
finalinherited
-
paths
→ List<PathWrapper<AssetPathEntity>>
-
Map for all path entity.
所有包含资源的路径里列表
no setterinherited
-
pathThumbnailSize
→ ThumbnailSize
-
Thumbnail size for path selector.
路径选择器中缩略图的大小
finalinherited
-
requestType
→ RequestType
-
Request assets type.
请求的资源类型
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedAssets
↔ List<AssetEntity>
-
Selected assets.
已选中的资源
getter/setter pairinherited
-
selectedDescriptions
→ String
-
Descriptions for selected assets currently.
当前已被选中的资源的描述
no setterinherited
-
selectedMaximumAssets
→ bool
-
是否已经选择了最大数量的资源
no setterinherited
-
sortPathDelegate
→ SortPathDelegate<AssetPathEntity>?
-
@{macro wechat_assets_picker.delegates.SortPathDelegate}
final
-
sortPathsByModifiedDate
→ bool
-
Whether to allow sort delegates to sort paths with
FilterOptionGroup.containsPathModified
.
是否结合 FilterOptionGroup.containsPathModified
进行路径排序
final
-
totalAssetsCount
↔ int?
-
Total count for assets.
资源总数
getter/setter pairinherited