Version class

A version in format of [<prefix>]<major>.<minor>.<patch>[-<type>][.<description>]

Constructors

Version.parse(String raw)
Parse version string to Version
factory

Properties

description String?
Description section in version string (optional)
final
display String
Display string
final
hashCode int
The hash code for this object.
no setterinherited
major int
Major version
final
minor int
Minor version
final
patch int
Patch version
final
prefix String?
Prefix section in version string (optional, usually 'v')
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type VersionType?
Version type (optional)
final

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.
inherited