show method

void show({
  1. required SecureKeyboardType type,
  2. FocusNode? focusNode,
  3. String? initText,
  4. String? hintText,
  5. String? inputTextLengthSymbol,
  6. String? doneKeyText,
  7. String? clearKeyText,
  8. String obscuringCharacter = '•',
  9. int? maxLength,
  10. bool alwaysCaps = false,
  11. bool obscureText = true,
  12. bool shuffleNumericKey = true,
  13. bool hideKeyInputMonitor = false,
  14. bool disableKeyBubble = false,
  15. ValueChanged<SecureKeyboardKey>? onKeyPressed,
  16. ValueChanged<List<int>>? onCharCodesChanged,
  17. ValueChanged<List<int>>? onDoneKeyPressed,
  18. 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();
}