AtomicOTPForm class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- AtomicOTPForm
Constructors
- AtomicOTPForm.new({Key? key, required dynamic onRequestOTP(String email), required dynamic onVerifyOTP(String email, String otp), TextEditingController? emailController, TextEditingController? otpController, FocusNode? emailFocusNode, FocusNode? otpFocusNode, bool isLoading = false, bool isOTPSent = false, String requestButtonText = 'Send Code', String verifyButtonText = 'Verify Code', String resendButtonText = 'Resend Code', String emailHint = 'Enter your email', String otpHint = 'Enter 6-digit code', int otpLength = 6, bool canResend = false, VoidCallback? onResendOTP, int? countdownSeconds, String? validator(String email, String? otp)?, AutovalidateMode autovalidateMode = AutovalidateMode.disabled})
-
const
Properties
- autovalidateMode → AutovalidateMode
-
final
- canResend → bool
-
final
- countdownSeconds → int?
-
final
- emailController → TextEditingController?
-
final
- emailFocusNode → FocusNode?
-
final
- emailHint → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoading → bool
-
final
- isOTPSent → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onRequestOTP → dynamic Function(String email)
-
final
- onResendOTP → VoidCallback?
-
final
- onVerifyOTP → dynamic Function(String email, String otp)
-
final
- otpController → TextEditingController?
-
final
- otpFocusNode → FocusNode?
-
final
- otpHint → String
-
final
- otpLength → int
-
final
- requestButtonText → String
-
final
- resendButtonText → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- validator → String? Function(String email, String? otp)?
-
final
- verifyButtonText → String
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< AtomicOTPForm> -
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, int wrapWidth = 65}) → 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