ForceUpdateException class final

Thrown by AppVersionCheckTask when the installed app version is below the minimum required version specified in Firebase Remote Config.

The router catches StartupStatus.forceUpdateRequired and navigates to the force-update screen, which is a terminal, non-dismissible gate.

Inheritance

Constructors

ForceUpdateException({required String currentVersion, required String minimumVersion})
Creates a ForceUpdateException with the currentVersion and minimumVersion.
const

Properties

currentVersion String
The version string of the currently installed app (for example "2.1.0").
final
hashCode int
The hash code for this object.
no setterinherited
message String
A human-readable description of the error.
finalinherited
minimumVersion String
The minimum version string required to run the app (for example "2.2.0").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
The string representation of this exception for debugging.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited