getSubPathEntities method
Implementation
Future<List<AssetPathEntity>> getSubPathEntities(
AssetPathEntity pathEntity,
) async {
if (PlatformUtils.isOhos) {
return <AssetPathEntity>[];
}
final Map result = await _channel.invokeMethod(
PMConstants.mGetSubPath,
<String, dynamic>{
'id': pathEntity.id,
'type': pathEntity.type.value,
'albumType': pathEntity.albumType,
'option': pathEntity.filterOption.toMap(),
},
);
final items = result['list'] as Map;
return ConvertUtils.convertToPathList(
items.cast(),
type: pathEntity.type,
filterOption: pathEntity.filterOption,
);
}