getAssetPathList method
Future<List<AssetPathEntity> >
getAssetPathList({
- bool hasAll = true,
- bool onlyAll = false,
- RequestType type = RequestType.common,
- PMFilter? filterOption,
- required PMPathFilter pathFilterOption,
Implementation
Future<List<AssetPathEntity>> getAssetPathList({
bool hasAll = true,
bool onlyAll = false,
RequestType type = RequestType.common,
PMFilter? filterOption,
required PMPathFilter pathFilterOption,
}) async {
if (onlyAll) {
hasAll = true;
}
filterOption ??= FilterOptionGroup();
final Map result = await _channel.invokeMethod(
PMConstants.mGetAssetPathList,
<String, dynamic>{
'type': type.value,
'hasAll': hasAll,
'onlyAll': onlyAll,
'option': filterOption.toMap(),
'pathOption': pathFilterOption.toMap(),
},
);
return ConvertUtils.convertToPathList(
result.cast(),
type: type,
filterOption: filterOption,
);
}