RegexTextField.email constructor
RegexTextField.email({
- Key? key,
- List<
RegexModel> ? rules, - TextEditingController? controller,
- FocusNode? focusNode,
- TextInputAction? textInputAction,
- ValueChanged<
bool> ? validate, - ValueChanged<
String> ? onSubmitted, - bool optional = false,
- RegexUIVisibility visibility = RegexUIVisibility.focus,
- String? showLabel,
- String? hideLabel,
- String? label,
- RegexUIStyle style = RegexUIStyle.chips,
An e-mail field in one line with RegexModel.emailRules.
Implementation
RegexTextField.email({
super.key,
List<RegexModel>? rules,
this.controller,
this.focusNode,
this.textInputAction,
this.validate,
this.onSubmitted,
this.optional = false,
this.visibility = RegexUIVisibility.focus,
this.showLabel,
this.hideLabel,
String? label,
this.style = RegexUIStyle.chips,
}) : rules = rules ?? RegexModel.emailRules(),
decoration = InputDecoration(
labelText: label ?? RegexLabels.current.emailField,
),
obscureText = false,
keyboardType = TextInputType.emailAddress,
autofillHints = const [AutofillHints.email],
showStrength = false,
strengthMode = RegexUIStrength.rules,
strengthLabels = null;