isDesktop static method

bool isDesktop()

Checks if the device is a desktop/laptop.

Returns true if the device is considered a desktop or laptop, false otherwise.

Example:

bool isDesktop = EaseDevice.isDesktop();

Implementation

/// bool isDesktop = EaseDevice.isDesktop();
/// ```
static bool isDesktop() {
  return MediaQuery.of(Utils.globalKey.currentContext!).size.shortestSide >=
      600; // Assuming devices with shortest side greater than or equal to 600 pixels are desktops/laptops
}