fileReplaceAtomically method

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

Atomically renames from over to.

Both paths must be on the same mounted filesystem.

Implementation

@override
Future<void> fileReplaceAtomically(String from, String to) =>
    methodChannel.invokeMethod<void>(
      'fileReplaceAtomically',
      <String, Object?>{'path': from, 'destination': to},
    );