DarwinVersion class final

A structure that contains version information about the currently executing operating system, including major, minor, and patch version numbers.

Constructors

DarwinVersion({int majorVersion = 0, int minorVersion = 0, int patchVersion = 0})
Constructs a DarwinVersion.
DarwinVersion.fromNumber(num number)
Constructs a DarwinVersion from num.
factory
DarwinVersion.fromString(String text)
Constructs a DarwinVersion from String.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
majorVersion int
The major release number, such as 10 in version 10.9.3.
final
minorVersion int
The minor release number, such as 9 in version 10.9.3.
final
patchVersion int
The update release number, such as 3 in version 10.9.3.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? majorVersion, int? minorVersion, int? patchVersion}) DarwinVersion
Copies a DarwinVersion.
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