FlutterSdk class final
A Flutter SDK on this machine.
Constructors
- FlutterSdk(String root)
-
The SDK in
root(the folder holdingbin/flutter).
Properties
- dart → String
-
The Dart executable the SDK ships.
no setter
- dartVersion → String?
-
The version of the Dart SDK it ships (
bin/cache/dart-sdk/version); null when it can't be read.no setter - exists → bool
-
Whether it looks like an SDK: its launcher exists.
no setter
- flutter → String
-
The
flutterlauncher.no setter - flutterVersion → String?
-
Its Flutter version: from
bin/cache/flutter.version.json(newer SDKs), else the oldversionfile; null when neither can be read.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isFinished → bool
-
Whether its install has finished: it holds no installingMarker.
no setter
- root → String
-
The SDK folder, with
/between parts.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
isVersion(
String version) → bool -
Whether this is Flutter
version: by flutterVersion, or — for an SDK that was never run, so has no version file yet — by its folder's name, as just and fvm name the SDKs they keep (…/3.47.9). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- installingMarker → const String
-
The file in an SDK
justis still installing: there until its first run passed. An SDK holding it isn't used.