SecureKeyboard constructor
const
SecureKeyboard({
- Key? key,
- required SecureKeyboardType type,
- ValueChanged<
SecureKeyboardKey> ? onKeyPressed, - ValueChanged<
List< ? onCharCodesChanged,int> > - required ValueChanged<
List< onDoneKeyPressed,int> > - required VoidCallback onCloseKeyPressed,
- StringKeyTouchStartCallback? onStringKeyTouchStart,
- StringKeyTouchEndCallback? onStringKeyTouchEnd,
- String? initText,
- String? hintText,
- String? inputTextLengthSymbol,
- String? doneKeyText,
- String? clearKeyText,
- String obscuringCharacter = '•',
- int? maxLength,
- bool alwaysCaps = false,
- bool obscureText = true,
- bool shuffleNumericKey = true,
- bool hideKeyInputMonitor = false,
- double height = kKeyboardDefaultHeight,
- double keyRadius = kKeyboardKeyDefaultRadius,
- double keySpacing = kKeyboardKeyDefaultSpacing,
- EdgeInsetsGeometry keyInputMonitorPadding = kKeyInputMonitorDefaultPadding,
- EdgeInsetsGeometry keyboardPadding = kKeyboardDefaultPadding,
- Color backgroundColor = kKeyboardDefaultBackgroundColor,
- Color stringKeyColor = kKeyboardDefaultStringKeyColor,
- Color actionKeyColor = kKeyboardDefaultActionKeyColor,
- Color doneKeyColor = kKeyboardDefaultDoneKeyColor,
- Color? activatedKeyColor,
- TextStyle keyTextStyle = kKeyboardDefaultKeyTextStyle,
- 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);