MFAWidget class

Inheritance

Constructors

MFAWidget({required dynamic onCompleted(String code), dynamic onSubmitted(String code)?, PinTheme? defaultPinTheme, PinTheme? focusedPinTheme, PinTheme? submittedPinTheme, PinTheme? followingPinTheme, PinTheme? disabledPinTheme, PinTheme? errorPinTheme, List<int>? seperatorPositions, Widget errorBuilder(String?, String)?, String? errorText, TextStyle? errorTextStyle, String? validator(String?)?, Widget submitButtonBuilder(Function onTap)?, int length = 6, Key? key})
Constructs an MFAWidget.
const

Properties

defaultPinTheme → PinTheme?
The theme for the default state of the input pins.
final
disabledPinTheme → PinTheme?
The theme for disabled input pins.
final
errorBuilder → (Widget Function(String?, String)?)
Builder function to customize the error display.
final
errorPinTheme → PinTheme?
The theme for input pins in error state.
final
errorText → String?
Text to display when there's an error.
final
errorTextStyle → TextStyle?
Style for the error text.
final
focusedPinTheme → PinTheme?
The theme for the focused state of the input pins.
final
followingPinTheme → PinTheme?
The theme for the pins following the submitted pin.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
length → int
The length of the MFA code.
final
onCompleted → dynamic Function(String code)
Callback function triggered when the MFA code is completed.
final
onSubmitted → (dynamic Function(String code)?)
Callback function triggered when the MFA code is submitted.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seperatorPositions → List<int>?
Positions for separators between input pins.
final
submitButtonBuilder → (Widget Function(Function onTap)?)
Builder function to customize the submit button.
final
submittedPinTheme → PinTheme?
The theme for the submitted state of the input pins.
final
validator → (String? Function(String?)?)
Validator function to validate the input.
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<MFAWidget>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited