DVBuildTarget class abstract

A build target provided by a package rather than by the CLI.

Constructors

DVBuildTarget()
const

Properties

aliases → List<String>
Other names the target answers to.
no setter
basePlatform → String?
The free platform this target's pipeline rides on, whose tools it needs too, or null for a target that builds itself.
no setter
buildsWithAll → bool
Whether dartvel build all builds this target. False for a target that is another presentation of one all already builds.
no setter
devDevice → String?
The Flutter device dartvel dev <name> runs on, or null when the target has no development loop of its own.
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
What follows dartvel build.
no setter
renderBackends → Set<DVRenderBackend>?
The rendering backends this target links, or null for the ones the project's pubspec asks for.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
summary → String
One line for dartvel targets.
no setter

Methods

availableOn(String hostOs) → bool
Whether a hostOs machine can build this target at all. Asked before tooling, so nothing is offered for install on a host that cannot use it.
build(DVBuildTargetContext context) → Future<DVBuildTargetResult>
Builds the target. Generation has already run.
doctor(DVBuildTargetContext context) → Future<void>
dartvel doctor --target <name>: report what the build needs, with the [+]/[!]/[i] prefixes the rest of doctor uses.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
packageFormatProblem({String? format, bool simulator = false}) → String?
Why --format and the signing options cannot build this target, or null to leave the question to the CLI's own rules.
prepareDev(DVBuildTargetContext context) → Future<bool>
Prepares the project for dartvel dev <name>, before Flutter runs. Returning false stops the command. Only asked when devDevice is set.
requirements({required String home, required String hostOs}) → List<ToolRequirement>
What has to be installed, beyond basePlatform's tools. Dartvel offers to install the automatic ones exactly as it does for a free target.
toString() → String
A string representation of this object.
inherited

Operators

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