updateFile method

  1. @Deprecated('Not used by clients')
File updateFile(
  1. String path,
  2. String content, [
  3. int? stamp
])

Implementation

@Deprecated('Not used by clients')
File updateFile(String path, String content, [int? stamp]) {
  _ensureAbsoluteAndNormalized(path);
  newFolder(pathContext.dirname(path));
  _pathToData[path] = _FileData(
    bytes: utf8.encode(content) as Uint8List,
    timeStamp: stamp ?? nextStamp++,
  );
  _notifyWatchers(path, ChangeType.MODIFY);
  return _MemoryFile(this, path);
}