saveAs static method

Future<String?> saveAs({
  1. required String sourcePath,
  2. required String fileName,
  3. String? mimeType,
})

Shows the native "save as" UI and copies sourcePath to the chosen place. Returns the destination (path or URI), or null when the user cancelled.

Implementation

static Future<String?> saveAs({required String sourcePath, required String fileName, String? mimeType}) =>
    _call<String>("saveAs", <String, Object?>{"sourcePath": sourcePath, "fileName": fileName, "mimeType": mimeType});