OTPFieldWidget constructor

OTPFieldWidget({
  1. Key? key,
  2. required TextEditingController otpController,
  3. required int length,
  4. required dynamic onCompleted(
    1. String
    ),
  5. void onChanged(
    1. String
    )?,
  6. PinTheme? defaultPinTheme,
  7. bool useNativeKeyboard = true,
  8. bool obscureText = false,
  9. List<TextInputFormatter> inputFormatters = const [],
  10. String? validator(
    1. String?
    )?,
  11. double? pinWidth = 34,
  12. 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,});