I am trying to pass arguments using --dart-define in the Android Studio IDE, but I am not able to access in the code.
code is
String.fromEnvironment('ENVIRONMENT', defaultValue: "DEV");
It is returning defaultValue.
I am trying to pass arguments using --dart-define in the Android Studio IDE, but I am not able to access in the code.
code is
String.fromEnvironment('ENVIRONMENT', defaultValue: "DEV");
It is returning defaultValue.
Copyright © 2021 Jogjafile Inc.

This is probably a weird gotcha with
String.fromEnvironment, from the docs:So this only works if you use