renameSync method

  1. @override
void renameSync(
  1. String from,
  2. String to
)
override

Renames from to to, replacing to.

Implementation

@override
void renameSync(String from, String to) {
  final file = _files.remove(from);
  if (file == null) throw StateError('no such file: $from');
  _files[to] = file;
}