isMobile static method

bool isMobile()

Checks if the device is a mobile phone.

Returns true if the device is considered a mobile phone, false otherwise.

Example:

bool isMobile = EaseDevice.isMobile();

Implementation

static bool isMobile() {
  return MediaQuery.of(Utils.globalKey.currentContext!).size.shortestSide <
      600; // Assuming devices with shortest side less than 600 pixels are mobile phones
}