saveFileToFolderExt static method

Future<String?> saveFileToFolderExt(
  1. String filePath, {
  2. bool removeOriginFile = false,
})

type is jpg, jpeg, png = your_app_name/your_app_name Pictures type mp4 = your_app_name/your_app_name Videos type mp3 = your_app_name/your_app_name Musics type m4a = your_app_name/your_app_name Audios any type extension = your_app_name/your_app_name Documents your path filePath remove origin file removeOriginFile default false

Implementation

static Future<String?> saveFileToFolderExt(
  String filePath, {
  bool removeOriginFile = false,
}) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('filePath', () => filePath);
  args.putIfAbsent('removeOriginFile', () => removeOriginFile);
  return _channel.invokeMethod('saveFileToFolderExt', args);
}