Line data Source code
1 : import 'dart:io' as io show Platform; 2 : 3 : class Platform extends io.Platform { 4 : /// Whether the operating system is a version of 5 : /// [Linux](https://en.wikipedia.org/wiki/Linux). 6 : /// 7 : /// This value is `false` if the operating system is a specialized 8 : /// version of Linux that identifies itself by a different name, 9 : /// for example Android (see [isAndroid]). 10 0 : static final bool isLinux = io.Platform.isLinux; 11 : 12 : /// Whether the operating system is a version of 13 : /// [macOS](https://en.wikipedia.org/wiki/MacOS). 14 0 : static final bool isMacOS = io.Platform.isMacOS; 15 : 16 : /// Whether the operating system is a version of 17 : /// [Microsoft Windows](https://en.wikipedia.org/wiki/Microsoft_Windows). 18 0 : static final bool isWindows = io.Platform.isWindows; 19 : 20 : /// Whether the operating system is a version of 21 : /// [Android](https://en.wikipedia.org/wiki/Android_%28operating_system%29). 22 0 : static final bool isAndroid = io.Platform.isAndroid; 23 : 24 : /// Whether the operating system is a version of 25 : /// [iOS](https://en.wikipedia.org/wiki/IOS). 26 27 : static final bool isIOS = io.Platform.isIOS; 27 : 28 : /// Whether the operating system is a version of 29 : /// [Fuchsia](https://en.wikipedia.org/wiki/Google_Fuchsia). 30 0 : static final bool isFuchsia = io.Platform.isFuchsia; 31 : 32 : /// Whether the operating system is a version of 33 : /// [Web](https://en.wikipedia.org/wiki/Web). 34 : static final bool isWeb = false; 35 : }