InputOTP constructor

const InputOTP({
  1. Key? key,
  2. required List<InputOTPChild> children,
  3. OTPCodepointList? initialValue,
  4. ValueChanged<OTPCodepointList>? onChanged,
  5. ValueChanged<OTPCodepointList>? onSubmitted,
  6. InputOTPTheme? theme,
})

Creates an InputOTP widget.

Parameters:

  • children (List<InputOTPChild>, required): The OTP input fields and decorations.
  • initialValue (OTPCodepointList?, optional): Initial codepoints.
  • onChanged (ValueChanged<OTPCodepointList>?, optional): Value change callback.
  • onSubmitted (ValueChanged<OTPCodepointList>?, optional): Submit callback.

Implementation

const InputOTP({
  super.key,
  required this.children,
  this.initialValue,
  this.onChanged,
  this.onSubmitted,
  this.theme,
});