setOverlay method

void setOverlay(
  1. String path, {
  2. required String content,
  3. required int modificationStamp,
})

Overlay the content of the file at the given path. The file will appear to have the given content and modificationStamp even if the file is modified in the base resource provider.

Implementation

void setOverlay(String path,
    {required String content, required int modificationStamp}) {
  _overlays[path] = _OverlayFileData(content, modificationStamp);
}