saveImage static method
save image to Gallery imageBytes can't null return Map type for example:{"isSuccess":true, "filePath":String?}
Implementation
static FutureOr<dynamic> saveImage(Uint8List imageBytes,
{int quality = 80,
String? name,
bool isReturnImagePathOfIOS = false}) async {
final result =
await _channel.invokeMethod('saveImageToGallery', <String, dynamic>{
'imageBytes': imageBytes,
'quality': quality,
'name': name,
'isReturnImagePathOfIOS': isReturnImagePathOfIOS
});
return result;
}