FlutterVersion class final

Inheritance
Annotations
  • @JsonSerializable(disallowUnrecognizedKeys: false, converters: [VersionJsonConverter()])

Constructors

FlutterVersion.new({required Version frameworkVersion, required String channel, required String repositoryUrl, required String frameworkRevision, required DateTime frameworkCommitDate, required String engineRevision, required Version dartSdkVersion, required Version devToolsVersion, required String flutterRoot})
FlutterVersion.fromJson(Map<String, dynamic> json)
factory

Properties

build String
Build information relevant to the version. Does not contribute to sorting.
finalinherited
channel String
final
dartSdkVersion Version
final
devToolsVersion Version
final
engineRevision String
final
flutterRoot String
final
frameworkCommitDate DateTime
final
frameworkRevision String
final
frameworkVersion Version
no setter
hashCode int
The hash code for this object.
no setterinherited
isPreRelease bool
Indicates that the version is a pre-release. Returns true if preRelease has any segments, otherwise false
no setterinherited
major int
The major number of the version, incremented when making breaking changes.
finalinherited
minor int
The minor number of the version, incremented when adding new functionality in a backwards-compatible manner.
finalinherited
patch int
The patch number of the version, incremented when making backwards-compatible bug fixes.
finalinherited
preRelease List<String>
Pre-release information segments.
no setterinherited
repositoryUrl String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(Version? other) int
Compares this object to another object.
inherited
incrementMajor() Version
Creates a new Version with the major version number incremented.
inherited
incrementMinor() Version
Creates a new Version with the minor version number incremented.
inherited
incrementPatch() Version
Creates a new Version with the patch version number incremented.
inherited
incrementPreRelease() Version
Creates a new Version with the right-most numeric preRelease segment incremented. If no numeric segment is found, one will be added with the value "1".
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
Returns a String representation of the Version.
inherited

Operators

operator <(dynamic o) bool
Determines whether the left-hand Version represents a lower precedence than the right-hand Version.
inherited
operator <=(dynamic o) bool
Determines whether the left-hand Version represents an equal or lower precedence than the right-hand Version.
inherited
operator ==(dynamic o) bool
Determines whether the left-hand Version represents an equal precedence to the right-hand Version.
inherited
operator >(dynamic o) bool
Determines whether the left-hand Version represents a greater precedence than the right-hand Version.
inherited
operator >=(dynamic o) bool
Determines whether the left-hand Version represents an equal or greater precedence than the right-hand Version.
inherited