ReleasePackerDartBuild class

A dart build <subcommand> command.

Declared in JSON as dart_build_<subcommand>, like dart_build_cli (ReleasePackerDartBuildCli). Other subcommands receive the arguments as is: a String (inline command) or a List.

Inheritance
Implementers

Constructors

ReleasePackerDartBuild(String subcommand, [List<String>? args])
ReleasePackerDartBuild.fromArgs(List<String> args)
Creates a command from the dart build args: [subcommand, ...].
factory
ReleasePackerDartBuild.fromJson(String subcommand, Object? json)
Creates a dart build subcommand from a dart_build_<subcommand> JSON value.
factory

Properties

args → List<String>
finalinherited
command → String
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
platforms ↔ List<RegExp>
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subcommand → String
The dart build subcommand, like cli.
final

Methods

execute(ReleasePacker releasePacker, Directory rootDirectory, {ReleaseBundle? releaseBundle, int expectedExitCode = 0}) → bool
inherited
executeStatus(ReleasePacker releasePacker, Directory rootDirectory, {ReleaseBundle? releaseBundle}) → FutureOr<ReleasePackerCommandStatus>
Executes this command returning its ReleasePackerCommandStatus.
inherited
matchesPlatform(String? platform) → bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJsonMap(Map map) → List<ReleasePackerDartBuild>
The commands of the dart_build_<subcommand> entries of map.
isJsonKey(Object? key) → bool
Returns true if key is a dart_build_<subcommand> JSON key.
subcommandOfJsonKey(Object? key) → String?
The subcommand of a dart_build_<subcommand> JSON key, or null.