EmailVerificationForm class
An email-verification form with a 6-digit OtpInput and resend button.
Calls AuthSomeClient.verifyEmail with the provided email and the entered code. Includes a 60 s cooldown on the resend button.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- EmailVerificationForm
Constructors
- EmailVerificationForm({required String email, VoidCallback? onSuccess, VoidCallback? onResend, Widget? logo, String titleText = 'Verify your email', String? descriptionText, String resendLabel = 'Resend code', String successTitleText = 'Email verified', String successDescriptionText = 'Your email has been verified successfully', int cooldownSeconds = 60, AuthCardAlign align = AuthCardAlign.center, Key? key})
-
const
Properties
- align → AuthCardAlign
-
Title + description text alignment within the AuthCard.
final
- cooldownSeconds → int
-
Cooldown duration in seconds (default: 60).
final
- descriptionText → String?
-
Card description (default: "Enter the 6-digit code sent to {email}").
final
- email → String
-
The email address being verified.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- logo → Widget?
-
Optional logo widget displayed above the title.
final
- onResend → VoidCallback?
-
Called when the user taps "Resend code".
final
- onSuccess → VoidCallback?
-
Called when verification succeeds.
final
- resendLabel → String
-
Resend button label (default: "Resend code").
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- successDescriptionText → String
-
Success description (default: "Your email has been verified successfully").
final
- successTitleText → String
-
Success title (default: "Email verified").
final
- titleText → String
-
Card title (default: "Verify your email").
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< EmailVerificationForm> -
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