InstallationStore class

Constructors

InstallationStore({NativeInstallationKey? key, FlutterSecureStorage? storage})

Properties

hashCode → int
The hash code for this object.
no setterinherited
key → NativeInstallationKey
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → Future<void>
Deletes the key and the installation ID: the next start is a new installation.
loadOrCreate() → Future<InstallationIdentity>
The installation: its key, made on first use, and its ID. A key made now (InstallationIdentity.createdThisLaunch) is a new installation, so it gets a new ID even where one was stored: that ID belongs to the key that was lost, and a backend refuses a known ID under another key. Calls at once share one load, so that one key never gets two IDs.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveInstallationId(String installationId) → Future<void>
Keeps the installation your backend answered for this key, which may not be the ID proposed. Only this opaque ID is stored here; the private key never leaves the platform's keystore.
setStepUpReenrolPending(bool pending) → Future<void>
stepUpReenrolPending() → Future<bool>
Whether a step-up key was replaced and the backend has not yet taken the new one (DeviceTrust.reenrolStepUp) -- kept across restarts.
toString() → String
A string representation of this object.
inherited

Operators

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