OtpShadInput constructor

const OtpShadInput({
  1. Key? key,
  2. FocusNode? focusNode,
  3. bool hasError = false,
  4. Future<void> onCompleted(
    1. String
    )?,
  5. dynamic onChanged(
    1. String
    )?,
  6. FormFieldValidator<String>? validator,
  7. int length = 6,
  8. bool autofocus = true,
  9. bool disabledErrorText = false,
  10. bool enabled = true,
})

Implementation

const OtpShadInput({
  super.key,
  this.focusNode, // Map focusNode
  this.hasError = false, // Map hasError
  this.onCompleted,
  this.onChanged,
  this.validator,
  this.length = 6,
  this.autofocus = true,
  this.disabledErrorText = false,
  this.enabled = true,
});