RegexTextField constructor

const RegexTextField({
  1. Key? key,
  2. required List<RegexModel> rules,
  3. TextEditingController? controller,
  4. FocusNode? focusNode,
  5. InputDecoration decoration = const InputDecoration(),
  6. bool obscureText = false,
  7. TextInputType? keyboardType,
  8. TextInputAction? textInputAction,
  9. Iterable<String>? autofillHints,
  10. ValueChanged<bool>? validate,
  11. ValueChanged<String>? onSubmitted,
  12. bool optional = false,
  13. RegexUIVisibility visibility = RegexUIVisibility.focus,
  14. RegexUIStyle style = RegexUIStyle.list,
  15. bool showStrength = false,
  16. RegexUIStrength strengthMode = RegexUIStrength.rules,
  17. List<String>? strengthLabels,
  18. String? showLabel,
  19. 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,
});