kMajorAppVersion top-level constant
Holds the major version of the application.
The value is read from the compile-time variable MAJOR_APP_VERSION.
Defaults to 0 if the compile-time variable is not set.
In order to set the variable use --dart-define when building the app:
flutter build [os] --dart-define=MAJOR_APP_VERSION=`VALUE`
Implementation
const kMajorAppVersion =
int.fromEnvironment("MAJOR_APP_VERSION", defaultValue: 0);