isLargeMobile static method

bool isLargeMobile(
  1. BuildContext context
)

Check if the device is a large mobile device. This method checks the width of the screen in the given BuildContext context and returns true if the width is less than or equal to 700, indicating a large mobile device.

Implementation

static bool isLargeMobile(BuildContext context) {
  return MediaQuery.sizeOf(context).width <= 700;
}