isTablet static method
Checks if the current device is a tablet.
Returns true if the screen width is between 500 and 1024 pixels.
Implementation
static bool isTablet(BuildContext context) => MediaQuery.of(context).size.width >= 500 && MediaQuery.of(context).size.width < 1024;