BuildVersion class
A Flutter app version: build name plus optional build number (1.4.0+12).
Constructors
- BuildVersion(String name, String? number)
-
const
Properties
-
flutterArgs
→ List<
String> -
Arguments for
flutter buildthat set this version without touching pubspec.yaml.no setter - hashCode → int
-
The hash code for this object.
no setteroverride
- name → String
-
final
- number → String?
-
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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Properties
Static Methods
-
effective(
String? requested, String pubspecVersion) → BuildVersion -
Applies
requestedon top of the pubspec version. A requested version without a build number keeps the pubspec's, so1.4.0on1.3.9+41becomes1.4.0+41. -
parse(
String value) → BuildVersion -
resolvePerClient(
List< String> specs, List<String> clients) → Map<String, String> -
Resolves
--build-versionvalues into a version per client. A plain value (1.4.0+12) applies to every client without its own entry;client=1.4.0+12targets one client. Clients without either keep the pubspec version (absent from the map).