MephistoOTPInput constructor
const
MephistoOTPInput({ - Key? key,
- Function? onChange,
- Function? onShowText,
- TextInputType? inputType,
- List<String>? autoFillHints,
- int? maxLength,
- bool? isLastField = false,
- bool? isPassword = false,
- String? initialValue = "",
- MephistoTextIconBadge? badge,
- Function? onButtonClick,
- String? placeholder,
- String? label,
- bool? showPassword,
- Widget? prefixIcon,
- Widget? suffixIcon,
- Function? onSuffixTap,
- dynamic validator(
- String? value
)?,
- Function? onFieldSubmitted,
- bool? isDisabled,
- List<TextInputFormatter>? inputFormatters,
- List<TextEditingController>? controllers,
- Color? fillColor,
- Widget? infoIcon,
- int? length = 4,
- 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});