kInstalledRelease top-level property

Release kInstalledRelease
final

The current release of the application.

This value is read from the following compile-time variables:

  • MAJOR_VERSION: int
  • MINOR_VERSION: int
  • PATCH_VERSION: int
  • BUILD_NUMBER: int
  • PATCH_NOTES: String (Markdown)
  • RELEASE_DATE: String (ISO 8601)
  • BUILD_CHANNEL: String
    • canary
    • dev
    • beta
    • stable

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,
);