AssetSelectPredicate<Asset> typedef
AssetSelectPredicate<Asset> =
FutureOr<bool> Function(BuildContext context, Asset asset, bool isSelected)
Predicate whether an asset can be selected or unselected. 判断资源可否被选择。
Implementation
typedef AssetSelectPredicate<Asset> = FutureOr<bool> Function(
BuildContext context,
Asset asset,
bool isSelected,
);