show method
void
show({
- required SecureKeyboardType type,
- FocusNode? focusNode,
- 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,
- bool disableKeyBubble = false,
- ValueChanged<
SecureKeyboardKey> ? onKeyPressed, - ValueChanged<
List< ? onCharCodesChanged,int> > - ValueChanged<
List< ? onDoneKeyPressed,int> > - VoidCallback? onCloseKeyPressed,
Show secure keyboard.
Implementation
void show({
required SecureKeyboardType type,
FocusNode? focusNode,
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,
bool disableKeyBubble = false,
ValueChanged<SecureKeyboardKey>? onKeyPressed,
ValueChanged<List<int>>? onCharCodesChanged,
ValueChanged<List<int>>? onDoneKeyPressed,
VoidCallback? onCloseKeyPressed,
}) {
assert(obscuringCharacter.isNotEmpty);
_type = type;
_focusNode = focusNode;
_initText = initText;
_hintText = hintText;
_inputTextLengthSymbol = inputTextLengthSymbol;
_doneKeyText = doneKeyText;
_clearKeyText = clearKeyText;
_obscuringCharacter = obscuringCharacter;
_maxLength = maxLength;
_alwaysCaps = alwaysCaps;
_obscureText = obscureText;
_shuffleNumericKey = shuffleNumericKey;
_hideKeyInputMonitor = hideKeyInputMonitor;
_disableKeyBubble = disableKeyBubble;
_onKeyPressed = onKeyPressed;
_onCharCodesChanged = onCharCodesChanged;
_onDoneKeyPressed = onDoneKeyPressed;
_onCloseKeyPressed = onCloseKeyPressed;
_isShowing = true;
notifyListeners();
}