BoltPinInput constructor

const BoltPinInput({
  1. Key? key,
  2. required int length,
  3. required dynamic onCompleted(
    1. String
    ),
  4. dynamic onChanged(
    1. String
    )?,
  5. bool obscureText = false,
  6. PinInputTheme theme = PinInputTheme.outlined,
  7. Color? activeColor,
  8. Color? inactiveColor,
  9. Color? textColor,
  10. Color? backgroundColor,
  11. String? errorText,
  12. TextStyle? errorTextStyle,
  13. FocusNode? focusNode,
  14. String? initialValue,
  15. TextInputType keyboardType = TextInputType.number,
  16. double? width,
  17. double? height,
  18. EdgeInsetsGeometry? margin,
  19. EdgeInsetsGeometry? padding,
  20. BorderRadius? borderRadius,
  21. double? fontSize,
  22. Decoration? pinDecoration,
  23. Duration animationDuration = const Duration(milliseconds: 300),
  24. bool autofocus = false,
  25. bool showCursor = true,
  26. List<TextInputFormatter>? inputFormatters,
})

Implementation

const BoltPinInput({
  super.key,
  required this.length,
  required this.onCompleted,
  this.onChanged,
  this.obscureText = false,
  this.theme = PinInputTheme.outlined,
  this.activeColor,
  this.inactiveColor,
  this.textColor,
  this.backgroundColor,
  this.errorText,
  this.errorTextStyle,
  this.focusNode,
  this.initialValue,
  this.keyboardType = TextInputType.number,
  this.width,
  this.height,
  this.margin,
  this.padding,
  this.borderRadius,
  this.fontSize,
  this.pinDecoration,
  this.animationDuration = const Duration(milliseconds: 300),
  this.autofocus = false,
  this.showCursor = true,
  this.inputFormatters,
});