BiometricAvailability class

Whether biometric authentication can be used right now.

Constructors

BiometricAvailability({required bool isAvailable, BiometricType type = BiometricType.none, String? reason})
const
BiometricAvailability.fromMap(Map<Object?, Object?> map)
Parses the native reply defensively; unknown / missing fields fall back to "not available".
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
isAvailable → bool
true when a biometric prompt can be shown.
final
reason → String?
Machine-readable reason when isAvailable is false (e.g. BIOMETRIC_NOT_ENROLLED). null when available.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → BiometricType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Constants

unavailable → const BiometricAvailability
Fail-secure default used when the platform reply cannot be understood.