isMobile static method
Checks if the current device is a mobile device.
Returns true if the screen width is less than 500 pixels.
Implementation
static bool isMobile(BuildContext context) => MediaQuery.of(context).size.width < 500;
Checks if the current device is a mobile device.
Returns true if the screen width is less than 500 pixels.
static bool isMobile(BuildContext context) => MediaQuery.of(context).size.width < 500;