isSmallScreen method

bool isSmallScreen(
  1. double width
)

Returns true if the screen width is less than the given value.

Example:

if (context.isSmallScreen(600)) { ... }

Implementation

bool isSmallScreen(double width) => screenWidth < width;