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