SimplePromptResult class

Result from simple biometric prompt authentication.

Constructors

SimplePromptResult({bool? success, String? error, BiometricError? code, int? selectedFallbackIndex, String? selectedFallbackText})

Properties

code BiometricError?
Standardized error code if authentication failed. Use this for programmatic error handling.
getter/setter pair
error String?
Error message if authentication failed. This is a human-readable description of what went wrong.
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
selectedFallbackIndex int?
Android 15+ Index of the selected fallback option in the original list. Only populated when code == BiometricError.fallbackSelected.
getter/setter pair
selectedFallbackText String?
Android 15+ Text of the selected fallback option. Only populated when code == BiometricError.fallbackSelected.
getter/setter pair
success bool?
Whether authentication was successful.
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) SimplePromptResult