isMobile property

bool get isMobile

Whether the current screen width determined by a MediaQuery check against the NavigatorState.currentContext supplied as the Platform.navigatorKey. is less than the Platform.desktopBreakpoint.

Implementation

bool get isMobile {
  if (isTestOverride) {
    return false;
  }

  return _screenWidth < desktopBreakpoint;
}