rename method

Future<void> rename(
  1. String path,
  2. String newName
)

Rename the file

Implementation

Future<void> rename(String path, String newName) async =>
    await renameFile(path.replaceSeparator(), newName);