OTPTextFieldFastor constructor

OTPTextFieldFastor({
  1. required int countNumber,
  2. required ValueChanged<String> onChangeCode,
  3. required ValueChanged<bool> onComplete,
  4. double? widthOTP,
  5. double? heightByPadding,
  6. double? margin,
  7. Color? colorText,
  8. String? fontFamily,
  9. double? fontSize,
  10. Decoration? decoration,
})

Implementation

OTPTextFieldFastor( {
  required this.countNumber,
  required ValueChanged<String> this.onChangeCode,
  required ValueChanged<bool> this.onComplete,
  this.widthOTP,
  this.heightByPadding,
  this.margin,
  this.colorText,
  // this.colorHint,
  this.fontFamily,
  this.fontSize,
  this.decoration
}) {
  widthOTP ??= 40;
  heightByPadding ??= 9;
  margin ??= 5;

  colorHint = colorText;
}