KeyboardUtils class

  • @Author: chuxiong
  • @Created at: 2022/2/24 2:32 下午
  • @Email:
  • description 键盘工具:关闭软键盘(closeKeyBoard)与分析硬件 KeyEvent 产生字符 (analysisKeyEvent,用于扫码枪等外设键盘场景)。

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

analysisKeyEvent(KeyEvent event) → String
分析 KeyEvent 并返回其产生的字符。
closeKeyBoard(BuildContext context, {FocusNode? focusNode}) → void
Closes the on-screen keyboard by releasing focus.