OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of dart.io; | 5 part of dart.io; |
6 | 6 |
7 /** | 7 /** |
8 * Information about the environment in which the current program is running. | 8 * Information about the environment in which the current program is running. |
9 * | 9 * |
10 * Platform provides information such as the operating system, | 10 * Platform provides information such as the operating system, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 * Returns true if the operating system is Android. | 113 * Returns true if the operating system is Android. |
114 */ | 114 */ |
115 static final bool isAndroid = (_operatingSystem == "android"); | 115 static final bool isAndroid = (_operatingSystem == "android"); |
116 | 116 |
117 /** | 117 /** |
118 * Returns true if the operating system is iOS. | 118 * Returns true if the operating system is iOS. |
119 */ | 119 */ |
120 static final bool isIOS = (_operatingSystem == "ios"); | 120 static final bool isIOS = (_operatingSystem == "ios"); |
121 | 121 |
122 /** | 122 /** |
| 123 * Returns true if the operating system is Fuchsia |
| 124 */ |
| 125 static final bool isFuchsia = (_operatingSystem == "fuchsia"); |
| 126 |
| 127 /** |
123 * Get the environment for this process. | 128 * Get the environment for this process. |
124 * | 129 * |
125 * The returned environment is an unmodifiable map which content is | 130 * The returned environment is an unmodifiable map which content is |
126 * retrieved from the operating system on its first use. | 131 * retrieved from the operating system on its first use. |
127 * | 132 * |
128 * Environment variables on Windows are case-insensitive. The map | 133 * Environment variables on Windows are case-insensitive. The map |
129 * returned on Windows is therefore case-insensitive and will convert | 134 * returned on Windows is therefore case-insensitive and will convert |
130 * all keys to upper case. On other platforms the returned map is | 135 * all keys to upper case. On other platforms the returned map is |
131 * a standard case-sensitive map. | 136 * a standard case-sensitive map. |
132 */ | 137 */ |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 /** | 206 /** |
202 * Returns the version of the current Dart runtime. | 207 * Returns the version of the current Dart runtime. |
203 * | 208 * |
204 * The returned `String` is formatted as the | 209 * The returned `String` is formatted as the |
205 * [semver](http://semver.org) version string of the current dart | 210 * [semver](http://semver.org) version string of the current dart |
206 * runtime, possibly followed by whitespace and other version and | 211 * runtime, possibly followed by whitespace and other version and |
207 * build details. | 212 * build details. |
208 */ | 213 */ |
209 static String get version => _version; | 214 static String get version => _version; |
210 } | 215 } |
OLD | NEW |