-
-
Save jakemac53/2d7449e8002589f2f93a828c5bf41915 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String get platform => throw UnimplementedError(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String get platform => 'io'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'platform.dart'; | |
main() { | |
print(platform); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String get platform => 'web'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment