RegexTextField.userName constructor
RegexTextField.userName({
- 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,
A user name field in one line with RegexModel.userNameRules.
Implementation
RegexTextField.userName({
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.userNameRules(),
decoration = InputDecoration(
labelText: label ?? RegexLabels.current.userNameField,
),
obscureText = false,
keyboardType = TextInputType.text,
autofillHints = const [AutofillHints.username],
showStrength = false,
strengthMode = RegexUIStrength.rules,
strengthLabels = null;