OTPFieldWidget constructor
OTPFieldWidget({
- Key? key,
- required TextEditingController otpController,
- required int length,
- required dynamic onCompleted(),
- void onChanged()?,
- PinTheme? defaultPinTheme,
- bool useNativeKeyboard = true,
- bool obscureText = false,
- List<
TextInputFormatter> inputFormatters = const [], - String? validator()?,
- double? pinWidth = 34,
- double? pinHeight = 34,
Implementation
OTPFieldWidget(
{super.key,
required this.otpController,
required this.length,
required this.onCompleted,
this.onChanged,
this.defaultPinTheme,
this.useNativeKeyboard = true,
this.obscureText = false,
this.inputFormatters = const [],
this.validator,
this.pinWidth = 34,
this.pinHeight = 34,});