2

Gradle has a convenient feature to implement separate build variants/flavors. Is there such feature in Dart (not Flutter)? I need to implement different codebases (different implementations) for one project, depending on the selected build variant. For example, I could put two different implementations in different (separated) packages and import them depending on the compile-time condition. Dart has conditional imports, but it seems they don't allow custom conditions.

proninyaroslav
  • 720
  • 2
  • 7
  • 19

0 Answers0