Utils class

Constructors

Utils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

addModulePackages(List<String> deps, List<String> devDeps, {required bool runPubGet}) → void
Adds the given runtime/dev packages to pubspec.yaml.
ensureDependencies() → void
Verifies a Flutter project root and adds the dependencies the create command relies on. (The init command manages its own packages.)
isFlutterAvailable() bool
Returns true if the flutter executable is available on PATH.
printUsage() → void
promptYesNo(String question, {bool defaultYes = true}) bool
Prompts the user with a yes/no question on stdin.
readPackageName() String?
Reads the project name from pubspec.yaml, or null if absent.