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:
Brian Quinlan 2021-09-30 22:58:44 +00:00 committed by commit-bot@chromium.org
parent 1332c63a4c
commit 8e6f639a7e

View file

@ -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.