isSmallScreen static method

bool isSmallScreen(
  1. BuildContext context
)

Small screen is any screen whose width is less than smallScreenBreakPoint pixels

Implementation

static bool isSmallScreen(BuildContext context) {
  return MediaQuery.of(context).size.width < smallScreenBreakPoint;
}