OtpPlusInputs constructor

const OtpPlusInputs({
  1. Key? key,
  2. required OtpFieldShape shape,
  3. required int length,
  4. TextStyle? textStyle,
  5. void onCompleted(
    1. String code
    )?,
  6. bool obscureText = false,
  7. bool? enabled,
  8. double horizontalSpacing = 12,
  9. double verticalSpacing = 12,
  10. Color cursorColor = Colors.black,
  11. TextDirection textDirection = TextDirection.ltr,
  12. UndoHistoryController? undoController,
  13. TextInputAction? textInputAction,
  14. TextCapitalization textCapitalization = TextCapitalization.none,
  15. TextStyle? style,
  16. StrutStyle? strutStyle,
  17. TextAlign textAlign = TextAlign.center,
  18. TextAlignVertical textAlignVertical = TextAlignVertical.center,
  19. String obscuringCharacter = '*',
  20. double size = 50,
  21. double cursorWidth = 1.5,
  22. EdgeInsets? contentPadding,
  23. bool? ignorePointers,
  24. double? cursorHeight,
  25. Radius? cursorRadius,
  26. bool? cursorOpacityAnimates,
  27. Color? borderColor,
  28. Color? focusedBorderColor,
  29. Color? errorBorderColor,
  30. void onChanged(
    1. String code
    )?,
  31. void onSubmit(
    1. String code
    )?,
})

Implementation

const OtpPlusInputs({
  super.key,
  required this.shape,
  required this.length,
  this.textStyle,
  this.onCompleted,
  this.obscureText = false,
  this.enabled,
  this.horizontalSpacing = 12,
  this.verticalSpacing = 12,
  this.cursorColor = Colors.black,
  this.textDirection = TextDirection.ltr,
  this.undoController,
  this.textInputAction,
  this.textCapitalization = TextCapitalization.none,
  this.style,
  this.strutStyle,
  this.textAlign = TextAlign.center,
  this.textAlignVertical = TextAlignVertical.center,
  this.obscuringCharacter = '*',
  this.size = 50,
  this.cursorWidth = 1.5,
  this.contentPadding,
  this.ignorePointers,
  this.cursorHeight,
  this.cursorRadius,
  this.cursorOpacityAnimates,
  this.borderColor,
  this.focusedBorderColor,
  this.errorBorderColor,
  this.onChanged,
  this.onSubmit,
});