SimplePromptConfig class

Configuration for simple biometric prompt (authentication without crypto ops).

This allows customization of the biometric prompt across platforms.

Constructors

SimplePromptConfig({String? subtitle, String? description, String? cancelButtonText, bool? allowDeviceCredentials, BiometricStrength? biometricStrength, List<BiometricFallbackOption?>? fallbackOptions})

Properties

allowDeviceCredentials bool?
Android/iOS/macOS Whether to allow device credentials (PIN/pattern/passcode) as a fallback for biometric authentication.
getter/setter pair
biometricStrength BiometricStrength?
Android The required biometric strength level.
getter/setter pair
cancelButtonText String?
Android Text for the cancel/negative button. Default: "Cancel" on Android, system default on iOS/macOS.
getter/setter pair
description String?
Android Description text displayed in the biometric prompt body.
getter/setter pair
fallbackOptions List<BiometricFallbackOption?>?
Android 15+ Custom fallback buttons shown on the biometric prompt. When provided, these replace the default cancel button. If the user taps a fallback option, the result will have code == BiometricError.fallbackSelected with the selected option's index and text. On other platforms, this field is ignored.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle String?
Android Subtitle text displayed below the title in the biometric prompt.
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) SimplePromptConfig