MultipleAssetPicker class

Inheritance

Constructors

MultipleAssetPicker({Key? key, ValueChanged<List<ExtendedAssetEntity>>? onChanged, AssetsPickerController? controller, MultiplePickerItemBuilder? itemBuilder, PickerWrapBuilderConfig wrapConfig = const PickerWrapBuilderConfig(), PickerWrapBuilder? wrapBuilder, List<ExtendedAssetEntity> initialData = const [], bool allowDelete = true, PickerIconBuilder? pickerIconBuilder, AssetsPickerItemConfig itemConfig = const AssetsPickerItemConfig(), bool enablePicker = true, int maxVideoCount = 1, int maxCount = 9, List<PickerFromTypeItem> fromRequestTypes = defaultPickerFromTypeItem, FlAssetFileRenovate? renovate, CameraPickerPageRoute<AssetEntity> pageRouteBuilderForCameraPicker(Widget picker)?, AssetPickerPageRouteBuilder<List<AssetEntity>>? pageRouteBuilderForAssetPicker})
const

Properties

allowDelete bool
是否显示删除按钮
final
controller AssetsPickerController?
资源控制器
final
enablePicker bool
是否开启 资源选择
finalinherited
fromRequestTypes List<PickerFromTypeItem>
请求类型
finalinherited
hashCode int
The hash code for this object.
no setterinherited
initialData List<ExtendedAssetEntity>
默认初始资源
final
itemBuilder MultiplePickerItemBuilder?
资源渲染子元素自定义构造
final
itemConfig AssetsPickerItemConfig
item UI 样式配置
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
maxCount int
最多选择几个资源
finalinherited
maxVideoCount int
最大选择视频数量
finalinherited
onChanged ValueChanged<List<ExtendedAssetEntity>>?
资源选择变化
final
pageRouteBuilderForAssetPicker AssetPickerPageRouteBuilder<List<AssetEntity>>?
finalinherited
pageRouteBuilderForCameraPicker → (CameraPickerPageRoute<AssetEntity> Function(Widget picker)?)
finalinherited
pickerIconBuilder PickerIconBuilder?
资源选择 icon 自定义构造
final
renovate FlAssetFileRenovate?
资源重新编辑
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useRootNavigator bool
finalinherited
wrapBuilder PickerWrapBuilder?
final
wrapConfig PickerWrapBuilderConfig
wrap UI 样式配置
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<MultipleAssetPicker>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

convertPaths(List<String> paths, {AssetType assetsType = AssetType.image}) List<ExtendedAssetEntity>
paths 文件地址转换 List
convertUrls(String url, {AssetType assetsType = AssetType.image, String? splitPattern}) List<ExtendedAssetEntity>
url 地址转换 List
toDynamicList(List<ExtendedAssetEntity> list) List
具体的数据 顺序为 url > path > file
toStringList(List<ExtendedAssetEntity> list) List<String>
具体的数据 顺序为 url > path > file