copyFile method

Future<void> copyFile(
  1. String from,
  2. String to, {
  3. String disk = 'public',
})

Copy a file.

Implementation

Future<void> copyFile(
  String from,
  String to, {
  String disk = 'public',
}) async {
  final storage = _storageManager.disk(disk);
  await storage.copy(from, to);
}