AssetPickerDelegate class

Constructors

AssetPickerDelegate()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
permissionCheck({PermissionRequestOption requestOption = const PermissionRequestOption()}) Future<PermissionState>
Request the current PermissionState of required permissions. 请求所需权限的 PermissionState
pickAssets(BuildContext context, {Key? key, AssetPickerConfig pickerConfig = const AssetPickerConfig(), PermissionRequestOption? permissionRequestOption, bool useRootNavigator = true, AssetPickerPageRouteBuilder<List<AssetEntity>>? pageRouteBuilder}) Future<List<AssetEntity>?>
Pick assets with the given pickerConfig. 根据给定的 pickerConfig 选择资源。
pickAssetsWithDelegate<Asset, Path, PickerProvider extends AssetPickerProvider<Asset, Path>>(BuildContext context, {required AssetPickerBuilderDelegate<Asset, Path> delegate, PermissionRequestOption permissionRequestOption = const PermissionRequestOption(), Key? key, bool useRootNavigator = true, AssetPickerPageRouteBuilder<List<Asset>>? pageRouteBuilder}) Future<List<Asset>?>
Pick assets with the given delegate. 根据给定的 delegate 选择资源。
registerObserve([ValueChanged<MethodCall>? callback]) → void
Register observe callback with assets changes. 注册资源(图库)变化的监听回调
themeData(Color? themeColor, {bool light = false}) ThemeData
Build a ThemeData with the given themeColor for the picker. 为选择器构建基于 themeColorThemeData
toString() String
A string representation of this object.
inherited
unregisterObserve([ValueChanged<MethodCall>? callback]) → void
Unregister the observation callback with assets changes. 取消注册资源(图库)变化的监听回调

Operators

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