VersionBoundaries class

Version boundaries.

Constructors

VersionBoundaries(VersionBoundary? min, VersionBoundary? max)
Version boundaries.
const
VersionBoundaries.version(Version version)
Version boundaries pinned.
VersionBoundaries.versions(Version? versionMin, Version? versionMax)
Default is lower bound included, upper excluted.

Properties

hashCode int
The hash code for this object.
no setteroverride
max VersionBoundary?
max.
final
min VersionBoundary?
min.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

match(Version version) bool
Prefer matches
matches(Version version) bool
True if a version match the boundaries
matchesMax(Version version) bool
True if a version match the max boundary
matchesMin(Version version) bool
True if a version match the min boundary.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMinMaxString() String

=minVersion <maxVersion

toShortString() String
Short string if possible, default to minMaxString.
toString() String
A string representation of this object.
override
toYamlString() String
Escape with '' if needed.

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

parse(String text) VersionBoundaries
Parse
tryParse(String text) VersionBoundaries?
Compat