Chromium Code Reviews| Index: sdk/lib/io/platform.dart |
| diff --git a/sdk/lib/io/platform.dart b/sdk/lib/io/platform.dart |
| index 56ddea0193b0df98b43e703e0c98828f4eb1e696..bf061cb8f6907acd52c86fde7b116f02449e3e39 100644 |
| --- a/sdk/lib/io/platform.dart |
| +++ b/sdk/lib/io/platform.dart |
| @@ -84,7 +84,7 @@ class Platform { |
| static String get pathSeparator => _pathSeparator; |
| /** |
| - * Get a string (`linux`, `macos`, `windows` or `android`) |
| + * Get a string (`linux`, `macos`, `windows`, `android`, or `ios`) |
| * representing the operating system. |
| */ |
| static String get operatingSystem => _operatingSystem; |
| @@ -115,6 +115,11 @@ class Platform { |
| static final bool isAndroid = (_operatingSystem == "android"); |
| /** |
| + * Returns true if the operating system is iOS. |
| + */ |
| + static final bool isIOS = (_operatingSystem == "ios"); |
|
Ivan Posva
2015/10/29 21:49:44
How about isiOS?
rmacnak
2015/10/30 17:31:20
Sure, it's awkward either way.
|
| + |
| + /** |
| * Get the environment for this process. |
| * |
| * The returned environment is an unmodifiable map which content is |