Skip to content

Instantly share code, notes, and snippets.

@jakemac53
Last active August 22, 2018 20:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakemac53/2d7449e8002589f2f93a828c5bf41915 to your computer and use it in GitHub Desktop.
Save jakemac53/2d7449e8002589f2f93a828c5bf41915 to your computer and use it in GitHub Desktop.
String get platform => throw UnimplementedError();
String get platform => 'io';
import 'platform.dart';
main() {
print(platform);
}
// see https://github.com/dart-lang/sdk/issues/34177 for an explanation about these ignores
// ignore: URI_DOES_NOT_EXIST
export 'default.dart'
// ignore: URI_DOES_NOT_EXIST
if (dart.library.io) 'io.dart'
// ignore: URI_DOES_NOT_EXIST
if (dart.library.html) 'web.dart';
String get platform => 'web';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment