hasPhysicalKeyboard static method

bool hasPhysicalKeyboard()

Checks if the device has a physical keyboard.

Returns true if a physical keyboard is attached, false otherwise.

Example:

bool hasKeyboard = EaseDevice.hasPhysicalKeyboard();

Implementation

static bool hasPhysicalKeyboard() {
  return MediaQuery.of(Utils.globalKey.currentContext!).viewInsets.bottom ==
      0.0;
}