cwd property

  1. @Deprecated("Use FilesystemImporter.noLoadPath or FilesystemImporter('.') instead.")
FilesystemImporter cwd
final

A FilesystemImporter that loads files relative to the current working directory.

Historically, this was the best default for supporting file: URL loads when the load path didn't matter. However, adding the current working directory to the load path wasn't always desirable, so it's no longer recommended. Instead, either use FilesystemImporter.noLoadPath if the load path doesn't matter, or FilesystemImporter('.') to explicitly preserve the existing behavior.

Implementation

@Deprecated(
    "Use FilesystemImporter.noLoadPath or FilesystemImporter('.') instead.")
static final cwd = FilesystemImporter._deprecated('.');