updateFile method
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);
}