InMemoryBiometricsAdapter class

Pure-Dart default adapter (test/dev): scripted outcomes.

Implemented types

Constructors

InMemoryBiometricsAdapter()

Properties

biometrics ↔ List<BiometricKind>
Modalities availableBiometrics reports.
getter/setter pair
canCheckFlag ↔ bool
Whether the device reports biometric capability.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
nextOutcome ↔ Object
The outcome the next authenticate resolves with (true/false), or a BiometricsException to throw. Defaults to success.
getter/setter pair
promptedReasons → List<String>
Reasons the adapter was asked to authenticate with (introspection).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

authenticate(String reason) → Future<bool>
Prompts the user to authenticate with reason; resolves true on success, false on a mismatch, and throws BiometricsException for cancelled/locked-out/unavailable flows.
override
availableBiometrics() → Future<List<BiometricKind>>
The modalities enrolled on the device (empty when none).
override
canCheck() → Future<bool>
Whether the device has enrolled biometrics and can authenticate.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setNextOutcome(Object outcome) → void
Scripting helpers: outcome is true/false or an exception.
toString() → String
A string representation of this object.
inherited

Operators

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