kMoodleServerAdress top-level constant
The url of the moodle server.
This detrmines where the app will send requests to.
This value is read from the compile-time variable MOODLE_ENDPOINT
and defaults to localhost:8080
.
In order to set the variable use --dart-define
when building the app:
flutter build [os] --dart-define=MOODLE_ENDPOINT=`VALUE`
Implementation
const kMoodleServerAdress = String.fromEnvironment('MOODLE_ENDPOINT', defaultValue: 'http://localhost:6000');