SystemCache constructor

SystemCache({
  1. String? rootDir,
  2. bool isOffline = false,
})

Creates a system cache and registers all sources in sources.

If isOffline is true, then the offline hosted source will be used. Defaults to false.

Implementation

SystemCache({String? rootDir, this.isOffline = false})
    : _rootDir = rootDir,
      tokenStore = TokenStore(dartConfigDir);