SecureKeyboard constructor

const SecureKeyboard({
  1. Key? key,
  2. required SecureKeyboardType type,
  3. ValueChanged<SecureKeyboardKey>? onKeyPressed,
  4. ValueChanged<List<int>>? onCharCodesChanged,
  5. required ValueChanged<List<int>> onDoneKeyPressed,
  6. required VoidCallback onCloseKeyPressed,
  7. StringKeyTouchStartCallback? onStringKeyTouchStart,
  8. StringKeyTouchEndCallback? onStringKeyTouchEnd,
  9. String? initText,
  10. String? hintText,
  11. String? inputTextLengthSymbol,
  12. String? doneKeyText,
  13. String? clearKeyText,
  14. String obscuringCharacter = '•',
  15. int? maxLength,
  16. bool alwaysCaps = false,
  17. bool obscureText = true,
  18. bool shuffleNumericKey = true,
  19. bool hideKeyInputMonitor = false,
  20. double height = kKeyboardDefaultHeight,
  21. double keyRadius = kKeyboardKeyDefaultRadius,
  22. double keySpacing = kKeyboardKeyDefaultSpacing,
  23. EdgeInsetsGeometry keyInputMonitorPadding = kKeyInputMonitorDefaultPadding,
  24. EdgeInsetsGeometry keyboardPadding = kKeyboardDefaultPadding,
  25. Color backgroundColor = kKeyboardDefaultBackgroundColor,
  26. Color stringKeyColor = kKeyboardDefaultStringKeyColor,
  27. Color actionKeyColor = kKeyboardDefaultActionKeyColor,
  28. Color doneKeyColor = kKeyboardDefaultDoneKeyColor,
  29. Color? activatedKeyColor,
  30. TextStyle keyTextStyle = kKeyboardDefaultKeyTextStyle,
  31. TextStyle inputTextStyle = kKeyboardDefaultInputTextStyle,
})

Constructs an instance of SecureKeyboard.

Implementation

const SecureKeyboard({
  super.key,
  required this.type,
  this.onKeyPressed,
  this.onCharCodesChanged,
  required this.onDoneKeyPressed,
  required this.onCloseKeyPressed,
  this.onStringKeyTouchStart,
  this.onStringKeyTouchEnd,
  this.initText,
  this.hintText,
  this.inputTextLengthSymbol,
  this.doneKeyText,
  this.clearKeyText,
  this.obscuringCharacter = '•',
  this.maxLength,
  this.alwaysCaps = false,
  this.obscureText = true,
  this.shuffleNumericKey = true,
  this.hideKeyInputMonitor = false,
  this.height = kKeyboardDefaultHeight,
  this.keyRadius = kKeyboardKeyDefaultRadius,
  this.keySpacing = kKeyboardKeyDefaultSpacing,
  this.keyInputMonitorPadding = kKeyInputMonitorDefaultPadding,
  this.keyboardPadding = kKeyboardDefaultPadding,
  this.backgroundColor = kKeyboardDefaultBackgroundColor,
  this.stringKeyColor = kKeyboardDefaultStringKeyColor,
  this.actionKeyColor = kKeyboardDefaultActionKeyColor,
  this.doneKeyColor = kKeyboardDefaultDoneKeyColor,
  this.activatedKeyColor,
  this.keyTextStyle = kKeyboardDefaultKeyTextStyle,
  this.inputTextStyle = kKeyboardDefaultInputTextStyle,
}) : assert(obscuringCharacter.length > 0);