RegexUI constructor

const RegexUI({
  1. Key? key,
  2. required TextEditingController controller,
  3. required List<RegexModel> regexList,
  4. FocusNode? focusNode,
  5. EdgeInsets? padding,
  6. EdgeInsets? margin,
  7. BoxDecoration? boxDecoration,
  8. IconData? iconTrue,
  9. IconData? iconFalse,
  10. Color? textColorTrue,
  11. Color? textColorFalse,
  12. Color? iconColorTrue,
  13. Color? iconColorFalse,
  14. TextStyle? textStyle,
  15. dynamic validate(
    1. bool isValid
    )?,
  16. RegexUIVisibility? visibility,
  17. RegexUIStyle style = RegexUIStyle.list,
  18. bool showStrength = false,
  19. RegexUIStrength strengthMode = RegexUIStrength.rules,
  20. List<String>? strengthLabels,
  21. bool optional = false,
  22. String? metLabel,
  23. String? unmetLabel,
})

Creates the checklist for controller.

Implementation

const RegexUI({
  super.key,
  required this.controller,
  required this.regexList,
  this.focusNode,
  this.padding,
  this.margin,
  this.boxDecoration,
  this.iconTrue,
  this.iconFalse,
  this.textColorTrue,
  this.textColorFalse,
  this.iconColorTrue,
  this.iconColorFalse,
  this.textStyle,
  this.validate,
  this.visibility,
  this.style = RegexUIStyle.list,
  this.showStrength = false,
  this.strengthMode = RegexUIStrength.rules,
  this.strengthLabels,
  this.optional = false,
  this.metLabel,
  this.unmetLabel,
});