EmailElement class
EmailElement representation of email text field inside form
initValue : initialized value of textFormField
label : label text of textFormField
hint : placeholder text of textFormField
decorationElement : element decorator for text field
errorEmailPattern : (String) error message when email pattern was invalid
errorEmailIsRequired : (String) error message when email was required
errorStyle
:
hintStyle
:
labelStyle
:
isRequired : (bool) make email field required in the form validation
readOnly : (bool) make email text field read only
- Inheritance
-
- Object
- FormElement
- TextElement
- EmailElement
Constructors
- EmailElement({String? id, String? initValue, String? label, String? hint, DecorationElement? decorationElement, String errorEmailPattern = "invalid email", String errorEmailIsRequired = "email is empty", bool isRequired = false, bool readOnly = false, EdgeInsets padding = const EdgeInsets.all(2.0), bool visibility = true})
Properties
- decorationElement → DecorationElement?
-
final
- error → String?
-
finalinherited
- errorEmailIsRequired → String
-
final
- errorEmailPattern → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → String?
-
final
- id → String?
-
finalinherited
- initValue → String?
-
final
- isRequired → bool
-
final
- label → String?
-
final
- onTap → Function?
-
finalinherited
- padding → EdgeInsets
-
final
- readOnly → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeInput → TypeInput
-
finalinherited
- validator → Validation?
-
finalinherited
- visibility → bool
-
finalinherited
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