DVPlatformVariant class

A free platform's pipeline, adjusted for a target that rides on it.

A target built from the Android or iOS project is still that project: the splash, launcher identity, deep links, release signing and every other writer prepare it exactly as they do for the free build. A variant adds to that rather than repeating it.

Constructors

DVPlatformVariant({required String name, List<String> flutterArguments = const <String>[], Map<DVPlatformStep, String> leaveOut = const <DVPlatformStep, String>{}, FutureOr<bool> prepare(DVBuildTargetContext context)?, FutureOr<bool> finish(DVBuildTargetContext context, {required bool built})?})
const

Properties

finish → FutureOr<bool> Function(DVBuildTargetContext context, {required bool built})?
Runs once the Flutter build has ended, whether or not it succeeded, when prepare ran. built says whether it did. Returning false fails a build that had succeeded; the return value is ignored when built is false.
final
flutterArguments → List<String>
Appended to the free platform's flutter build arguments.
final
hashCode → int
The hash code for this object.
no setterinherited
leaveOut → Map<DVPlatformStep, String>
Steps this target does not carry, each with the reason printed when the project declares it.
final
name → String
The target's name, used wherever the build reports what it is building.
final
prepare → FutureOr<bool> Function(DVBuildTargetContext context)?
Runs after Dartvel's own writers have prepared the native project and before flutter build. Returning false fails the build.
final
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