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