SdkConfiguration class

Dart SDK configuration.

Provides helpers to convert paths to uris that work on all platforms.

Constructors

SdkConfiguration.new({String? sdkDirectory, String? sdkSummaryPath, String? compilerWorkerPath})
const
SdkConfiguration.empty()
const
SdkConfiguration.fromSdkLayout(SdkLayout sdkLayout)

Properties

compilerWorkerPath String?
final
compilerWorkerUri Uri?
Note: has to be ///file: Uri to run in an isolate.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sdkDirectory String?
final
sdkDirectoryUri Uri?
no setter
sdkSummaryPath String?
final
sdkSummaryUri Uri?
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate({FileSystem fileSystem = const LocalFileSystem()}) → void
Throws InvalidSdkConfigurationException if configuration does not exist on disk.
validateCompilerWorker({FileSystem fileSystem = const LocalFileSystem()}) → void
validateSdkDir({FileSystem fileSystem = const LocalFileSystem()}) → void
Throws InvalidSdkConfigurationException if SDK root does not exist on the disk.
validateSummaries({FileSystem fileSystem = const LocalFileSystem()}) → void

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

defaultConfiguration SdkConfiguration
final
defaultSdkLayout SdkLayout
final