saveAs function
Future<String?>
saveAs(
- UStorageBackend backend,
- String sourcePath,
- String fileName, {
- String? mimeType,
Implementation
Future<String?> saveAs(UStorageBackend backend, String sourcePath, String fileName, {String? mimeType}) async {
final String? destination = await UFilesChannel.saveAs(sourcePath: sourcePath, fileName: fileName, mimeType: mimeType);
if (destination != null) await backend.delete(sourcePath);
return destination;
}