saveImage method
Implementation
Future<AssetEntity> saveImage(
typed_data.Uint8List data, {
required String filename,
String? title,
String? desc,
String? relativePath,
int? orientation,
}) async {
_throwIfOrientationInvalid(orientation);
final Map result = await _channel.invokeMethod(
PMConstants.mSaveImage,
<String, dynamic>{
'image': data,
'filename': filename,
'title': title,
'desc': desc,
'relativePath': relativePath,
'orientation': orientation,
...onlyAddPermission,
},
);
return ConvertUtils.convertMapToAsset(result.cast(), title: filename);
}