isTablet static method

dynamic isTablet(
  1. BuildContext context
)

Implementation

static isTablet(BuildContext context) {
  double width = MediaQuery.of(context).size.width;
  return width < ScreenSizes.Tablet;
}