appBuildNumber top-level constant
The build number this application was built with.
This is the part of the version field in the app's pubspec.yaml after
the + separator (for example 45 for version: 1.2.3+45), or the value
of the --build-number option if it was provided at build time.
This will be null if the version has no build number and no
--build-number option was provided.
Implementation
const String? appBuildNumber = bool.hasEnvironment('FLUTTER_BUILD_NUMBER')
? String.fromEnvironment('FLUTTER_BUILD_NUMBER')
: null;