Dart
Conditional compilation
Here’s an example where we conditionally export
web.dartif we’re compiling a web appmobile.dartif we’re compiling a mobile appunsupported.dartotherwise
export 'unsupported.dart'
if (dart.library.html) 'web.dart'
if (dart.library.io) 'mobile.dart';