isLargeScreen method

bool isLargeScreen(
  1. double width
)

Returns true if the screen width is greater than or equal to the given value.

Example:

if (context.isLargeScreen(1200)) { ... }

Implementation

bool isLargeScreen(double width) => screenWidth >= width;