DartProjectConfig class

Configuration for dart create command

Inheritance

Constructors

DartProjectConfig.new({required String projectName, required String projectParentDir, required String template, required bool shouldForce, required bool shouldRunPubGet})
const

Properties

args List<String>
The arguments for the command.
no setteroverride
commandName String
The name of the command. (e.g. create)
no setteroverride
executableName String
The name of the executable. (e.g. dart or flutter)
no setteroverride
fullArgs List<String>
The full arguments for the command, including the command name.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
projectDir String
no setter
projectName String
Project name, used also as project directory name
final
projectParentDir String
Project's parent directory path where the project will be created
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldForce bool
Should overwrite existing project directory
final
shouldRunPubGet bool
Should get dependencies after project creation
final
template String
Project template name. See: DartProjectTemplate
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCommandLineList() List<String>
Returns a list representation of the command to be executed.
inherited
toCommandLineString() String
Returns a string representation of the command to be executed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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