HcMockUpgradeOS class

A class to mock HcUpgradeOS for testing.

Inheritance

Constructors

HcMockUpgradeOS({String os = '', String osv = '', bool android = false, bool fuchsia = false, bool ios = false, bool linux = false, bool macos = false, bool web = false, bool windows = false})

Properties

android bool
final
current String
no setterinherited
fuchsia bool
final
hashCode int
The hash code for this object.
no setterinherited
ios bool
final
isAndroid bool
Whether the operating system is a version of Android.
no setteroverride
isFuchsia bool
Whether the operating system is a version of Fuchsia.
no setteroverride
isIOS bool
Whether the operating system is a version of iOS.
no setteroverride
isLinux bool
Whether the operating system is a version of Linux.
no setteroverride
isMacOS bool
Whether the operating system is a version of macOS.
no setteroverride
isWeb bool
Whether the application was compiled to run on the web.
no setteroverride
isWindows bool
Whether the operating system is a version of Windows.
no setteroverride
linux bool
final
macos bool
final
operatingSystem String
The target operating system.
no setteroverride
operatingSystemVersion String
A string representing the version of the operating system or platform.
no setteroverride
os String
final
osv String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
web bool
final
windows bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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