move method
Moves the file to a new directory.
directory is the target directory path.
name is the optional new filename (defaults to original filename).
Returns the full path to the moved file.
Implementation
Future<String> move(String directory, {String? name}) async {
final targetName = name ?? filename;
final targetPath = path.join(directory, targetName);
return saveTo(targetPath);
}