ChangingPinConfiguration class
Provides information needed to draw a screen through which the user can change their password
Constructors
- ChangingPinConfiguration({required Widget oldPinInputWidget, required Widget newPinInputWidget, required Widget confirmNewPinInputWidget, required LocalAuthFailure? error, required bool canSubmitChange, required VoidCallback onSubimtChange, 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 isfalse
, it will result in an error in the configurationfinal - confirmNewPinInputWidget → Widget
-
A widget through which the user re-enters their desired pin, making sure that it
matches the input of newPinInputWidget
final
- 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
- newPinInputWidget → Widget
-
A widget through which the user inputs their new pin.
final
- oldPinInputWidget → Widget
-
A widget through which the user inputs the pin that they want to change.
Providing the existing pin is necessary to be able to change it to something else
final
- 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 - onSubimtChange → VoidCallback
-
A callback that notifies the Authenticator that the user wants to attempt to change their pin.
The most common errors that can result from this are LocalAuthFailure.wrongPin if the existing pin
is incorrently entered or LocalAuthFailure.pinNotMatching if the new pin and confirmation pin are not
identical
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
, the toString method will be overridden to output this instance's props.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