InputOTP constructor
const
InputOTP({
- Key? key,
- required List<
InputOTPChild> children, - OTPCodepointList? initialValue,
- ValueChanged<
OTPCodepointList> ? onChanged, - ValueChanged<
OTPCodepointList> ? onSubmitted, - 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,
});