saveFile static method
Save the PNG,JPG,JPEG image or video located at file to the local device media gallery.
Implementation
static Future saveFile(String file,
{String? name,
bool isReturnPathOfIOS = false,
bool isReturnIdOfIOS = false}) async {
final result =
await _channel.invokeMethod('saveFileToGallery', <String, dynamic>{
'file': file,
'name': name,
'isReturnPathOfIOS': isReturnPathOfIOS,
'isReturnIdOfIOS': isReturnIdOfIOS
});
return result;
}