BiometricFallbackOption class

A custom fallback option shown on the biometric prompt.

Android 15+ only When provided in a config's fallbackOptions list, these appear as alternative buttons on the biometric prompt dialog. If the user taps one, the result will have code BiometricError.fallbackSelected with the selected option's index and text.

On iOS, macOS, and Windows this class is ignored.

Constructors

BiometricFallbackOption({String? text, String? iconName})

Properties

hashCode int
The hash code for this object.
no setteroverride
iconName String?
Android Optional icon type name for the fallback button. Valid values: "password", "qr_code", "account", "generic". Maps to AuthenticationRequest.Biometric.Fallback.ICON_TYPE_* constants. When null, defaults to "generic".
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String?
The text label displayed on the fallback button.
getter/setter pair

Methods

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

Operators

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

Static Methods

decode(Object result) BiometricFallbackOption