saveFile static method

Future saveFile(
  1. String file, {
  2. bool isReturnPathOfIOS = false,
})

Save the PNG,JPG,JPEG image or video located at file to the local device media gallery.

Implementation

static Future saveFile(String file, {bool isReturnPathOfIOS = false}) async {
  final result = await _channel.invokeMethod(
      'saveFileToGallery', <String, dynamic>{
    'file': file,
    'isReturnPathOfIOS': isReturnPathOfIOS
  });
  return result;
}