kInstalledRelease top-level property
final
The current release of the application.
This value is read from the following compile-time variables:
MAJOR_VERSION: intMINOR_VERSION: intPATCH_VERSION: intBUILD_NUMBER: intPATCH_NOTES: String (Markdown)RELEASE_DATE: String (ISO 8601)BUILD_CHANNEL: Stringcanarydevbetastable
Implementation
final kInstalledRelease = Release(
// These calues are set at compile-time.
// ignore: use_named_constants
version: const Version(
major: _majorVersion,
minor: _minorVersion,
patch: _patchVersion,
// This value is set at compile time.
// ignore: avoid_redundant_argument_values
build: _buildNumber,
),
// This value is set at compile time.
// ignore: avoid_redundant_argument_values
patchNotes: _patchNotes,
channel: _releaseChannel,
releaseDate: _releaseDate,
);