mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 12:20:38 +00:00
Add some extra documentation for Platform.operatingSystem
Change-Id: I8918fd7476be72c426d6009122e7c90a2d078bc5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/215144 Reviewed-by: Alexander Aprelev <aam@google.com> Commit-Queue: Brian Quinlan <bquinlan@google.com>
This commit is contained in:
parent
1332c63a4c
commit
8e6f639a7e
1 changed files with 12 additions and 1 deletions
|
@ -43,7 +43,7 @@ part of dart.io;
|
|||
///
|
||||
/// You can get the name of the operating system as a string with the
|
||||
/// [operatingSystem] getter. You can also use one of the static boolean
|
||||
/// getters: [isMacOS], [isLinux], and [isWindows].
|
||||
/// getters: [isMacOS], [isLinux], [isWindows], etc.
|
||||
/// ```dart
|
||||
/// import 'dart:io' show Platform;
|
||||
///
|
||||
|
@ -77,6 +77,17 @@ class Platform {
|
|||
static String get localeName => _Platform.localeName();
|
||||
|
||||
/// A string representing the operating system or platform.
|
||||
///
|
||||
/// Possible values include:
|
||||
/// "android"
|
||||
/// "fuchsia"
|
||||
/// "ios"
|
||||
/// "linux"
|
||||
/// "macos"
|
||||
/// "windows"
|
||||
///
|
||||
/// Note that this list may change over time so platform-specific logic
|
||||
/// should be guarded by the appropriate boolean getter e.g. [isMacOS].
|
||||
static String get operatingSystem => _operatingSystem;
|
||||
|
||||
/// A string representing the version of the operating system or platform.
|
||||
|
|
Loading…
Reference in a new issue