RegexTextField constructor
const
RegexTextField({
- Key? key,
- required List<
RegexModel> rules, - TextEditingController? controller,
- FocusNode? focusNode,
- InputDecoration decoration = const InputDecoration(),
- bool obscureText = false,
- TextInputType? keyboardType,
- TextInputAction? textInputAction,
- Iterable<
String> ? autofillHints, - ValueChanged<
bool> ? validate, - ValueChanged<
String> ? onSubmitted, - bool optional = false,
- RegexUIVisibility visibility = RegexUIVisibility.focus,
- RegexUIStyle style = RegexUIStyle.list,
- bool showStrength = false,
- RegexUIStrength strengthMode = RegexUIStrength.rules,
- List<
String> ? strengthLabels, - String? showLabel,
- String? hideLabel,
Creates a field checked against rules.
Implementation
const RegexTextField({
super.key,
required this.rules,
this.controller,
this.focusNode,
this.decoration = const InputDecoration(),
this.obscureText = false,
this.keyboardType,
this.textInputAction,
this.autofillHints,
this.validate,
this.onSubmitted,
this.optional = false,
this.visibility = RegexUIVisibility.focus,
this.style = RegexUIStyle.list,
this.showStrength = false,
this.strengthMode = RegexUIStrength.rules,
this.strengthLabels,
this.showLabel,
this.hideLabel,
});