OperatingSystem class Null safety
The name and version of an operating system.
- Available Extensions
Constructors
- OperatingSystem(String id, String version)
-
Creates an operating system ID with the provided values.
const
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- id → String
-
A string representing the operating system or platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- version → String
-
A string representing the version of the operating system or platform.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- current → OperatingSystem
-
The current operating system ID.
read-only