saveImage static method

FutureOr saveImage(
  1. Uint8List imageBytes, {
  2. int quality = 80,
  3. String? name,
  4. bool isReturnImagePathOfIOS = false,
})

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;
}