isDesktop property

bool get isDesktop

Returns true if the screen is a desktop (width >= 1200).

Example:

if (context.isDesktop) { ... }

Implementation

bool get isDesktop => screenWidth >= 1200;