copy method

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

Copies the file from one path to another.

Implementation

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