operatingSystem property Null safety

  1. @override
String operatingSystem
override

A string (linux, macos, windows, android, ios, or fuchsia) representing the operating system.

The possible return values are available from operatingSystemValues, and there are constants for each of the platforms to use in switch statements or conditionals (See linux, macOS, windows, android, iOS, and fuchsia).

Implementation

@override
String get operatingSystem => io.Platform.operatingSystem;