move method

  1. @override
Future<void> move(
  1. String from,
  2. String to
)
override

Moves the file from one path to another.

Implementation

@override
Future<void> move(String from, String to) async {
  final src = _file(from);
  final dst = _file(to);
  await dst.create(recursive: true);
  await src.rename(dst.path);
}