OS class final

An operating system the Dart VM runs on.

Available extensions

Constructors

OS.fromString(String name)
Creates a OS from the given name.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of this operating system.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dylibFileName(String name) String

Available on OS, provided by the OSLibraryNaming extension

The default dynamic library file name on this os.
executableFileName(String name) String

Available on OS, provided by the OSLibraryNaming extension

The default executable file name on this os.
libraryFileName(String name, LinkMode linkMode) String

Available on OS, provided by the OSLibraryNaming extension

The default library file name on this os.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
staticlibFileName(String name) String

Available on OS, provided by the OSLibraryNaming extension

The default static library file name on this os.
toString() String
The name of this OS.
override

Operators

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

Static Properties

current OS
The current OS.
final

Constants

android → const OS
The Android operating system.
fuchsia → const OS
The Fuchsia operating system.
iOS → const OS
The iOS operating system.
linux → const OS
The Linux operating system.
macOS → const OS
The macOS operating system.
osCrossCompilationDefault → const Map<OS, List<OS>>
Typical cross compilation between OSes.
values → const List<OS>
Known values for OS.
windows → const OS
The Microsoft Windows operating system.