isMobile static method

dynamic isMobile(
  1. BuildContext context
)

Implementation

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