The classes Platform and Options will be removed from dart:io, since they are replaced by the new dart:platform library, available on all Dart platforms.
The arguments to a Dart script, Options.arguments, are replaced by the optional arguments parameter of main: main(List<String> arguments).
The static getters of Platform are top-level getters in dart:platform, with the same values as in dart:io. The fields isWindows, isLinux, isMacOS, and isAndroid have
been removed, and script has been changed from a String containing a native filesystem path to a file Uri.
How do I update my code?
Import the dart:platform library, possibly as a named import, like
import 'dart:platform' as platform;
and use platform where you previously had Platform, or using show, as in
import 'dart:platform' show operatingSystem;
Replace Platform.script with platform.script.toFilePath(), or use platform.script as a Uri.
Replace isWindows with platform.operatingSystem == 'windows', and similarly with 'linux',
'macos', and 'android'.
Why did this change happen?
The arguments parameter was added to main, removing the last use of Options, and the system information provided by dart:io Platform was thought to be useful on all platforms, not just those
supporting dart:io, so a dart:platform library was added containing this information.
When will the change take effect?
The new dart:platform library is already available on bleeding-edge Dart, as is main(List<String> arguments). The old classes will be removed around November 1st, 2013.