isDesktop property
bool
get
isDesktop
Whether the current screen width determined by a MediaQuery check against
the NavigatorState.currentContext
supplied as the Platform.navigatorKey
is greater than or equal to the Platform.desktopBreakpoint.
Implementation
bool get isDesktop {
if (isTestOverride) {
return true;
}
return _screenWidth >= desktopBreakpoint;
}