In flutter a made a linux application. Is consumes an endoint that varies depending the environment I need to build for. For each environment I have a different main
file:
- For production I have a
main-prod.dart
- For staging I have a
main-staging.dart
- For local development I have a
main-dev.dart
All files are located into `./lib/ folder with the rest of source code
During building for desktop application via:
flutter build linux
orflutter build windows
orflutter build macos
During run
I can provide via -t
parameter for example for local development I run:
flutter run -t ./lib/main-dev.dart
But how on Chirst's sake I can do the same for buidling as well?