ProcessPubRunner class final
Runs the SDK's own dart pub get, which needs no Flutter tool lock — so
it works while flutter run holds one — and falls back to
flutter pub get.
- Implemented types
Constructors
- ProcessPubRunner(FlutterSdk sdk, {Duration timeout = const Duration(minutes: 5)})
-
A runner using
sdk, giving up aftertimeout.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sdk → FlutterSdk
-
The SDK to run.
final
- timeout → Duration
-
How long one run may take.
final
Methods
-
get(
String projectRoot, {bool offline = false}) → Future< PubResult> -
Resolves
projectRoot's dependencies.offlineuses only the cache (as rollbacks do).override -
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