MephistoOTPInput constructor

const MephistoOTPInput({
  1. Key? key,
  2. Function? onChange,
  3. Function? onShowText,
  4. TextInputType? inputType,
  5. List<String>? autoFillHints,
  6. int? maxLength,
  7. bool? isLastField = false,
  8. bool? isPassword = false,
  9. String? initialValue = "",
  10. MephistoTextIconBadge? badge,
  11. Function? onButtonClick,
  12. String? placeholder,
  13. String? label,
  14. bool? showPassword,
  15. Widget? prefixIcon,
  16. Widget? suffixIcon,
  17. Function? onSuffixTap,
  18. dynamic validator(
    1. String? value
    )?,
  19. Function? onFieldSubmitted,
  20. bool? isDisabled,
  21. List<TextInputFormatter>? inputFormatters,
  22. List<TextEditingController>? controllers,
  23. Color? fillColor,
  24. Widget? infoIcon,
  25. int? length = 4,
  26. bool? isBold = true,
})

Implementation

const MephistoOTPInput(
    {super.key,
    this.onChange,
    this.onShowText,
    this.inputType,
    this.autoFillHints,
    this.maxLength,
    this.isLastField = false,
    this.isPassword = false,
    this.initialValue = "",
    this.badge,
    this.onButtonClick,
    this.placeholder,
    this.label,
    this.showPassword,
    this.prefixIcon,
    this.suffixIcon,
    this.onSuffixTap,
    this.validator,
    this.onFieldSubmitted,
    this.isDisabled,
    this.inputFormatters,
    this.controllers,
    this.fillColor,
    this.infoIcon,
    this.length = 4,
    this.isBold = true});