getTitleAsync method
Implementation
Future<String> getTitleAsync(
AssetEntity entity, {
int subtype = 0,
}) async {
assert(Platform.isAndroid || Platform.isIOS || Platform.isMacOS);
if (Platform.isAndroid) {
return entity.title!;
}
if (Platform.isIOS || Platform.isMacOS) {
return await _channel.invokeMethod<String>(
PMConstants.mGetTitleAsync,
<String, dynamic>{
'id': entity.id,
'subtype': subtype,
},
) as String;
}
return '';
}