EnablingPinConfiguration class
Provides information necessary for drawing a screen through which the user sets up their pin
Constructors
- EnablingPinConfiguration({LocalAuthFailure? error, required Widget pinInputWidget, required Widget pinConfirmationWidget, required bool canSubmitChange, required VoidCallback onSubmitChange, required VoidCallback onCancel})
-
const
Properties
- canSubmitChange → bool
-
Can optionally be used to controll whether the 'submit' or 'save' button is visible or enabled.
If onSubmitChange is triggered while canSubmitChange is
false
, it will result in an error in the configurationfinal - error → LocalAuthFailure?
-
Provides a reason for the error that occured, which makes it possible to display
an apporpriate message to the user
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onCancel → VoidCallback
-
A callback that reverts the state of the AuthenticationSetupWidget to Overview state. Intended to be used
as the
onClick
parameter of a 'cancel' buttonfinal - onSubmitChange → VoidCallback
-
A callback that notifies the Authenticator that the user wants to save their changes.
If the pins don't match or they are too short, the next EnablingPinConfiguration will
contain an appropriate error
final
- pinConfirmationWidget → Widget
-
A widget that enables user to re-enter their pin to confirm that the inital pin is
entered correctly. Conforms to the look provided by PinInputBuilder and should be placed
on the enabling pin screen according to the designs of the app
final
- pinInputWidget → Widget
-
A widget that conforms to the look provided by PinInputBuilder. It should be
placed on the screen according to the app's designs
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stringify → bool?
-
If set to
true
, thetoString
method will be overridden to output this instance'sprops
.no setterinherited
Methods
-
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.
inherited