isTabletOrSmaller property
bool
get
isTabletOrSmaller
Whether the current layout width class is DeviceSize.tablet or narrower — the ordered "smaller than desktop" threshold.
Equivalent to !isDesktop, but reads as a descending threshold. Shorthand
for isAtMost(DeviceSize.tablet).
Reports the layout width class (window width), not the OS / device platform (see DevicePlatform).
Implementation
bool get isTabletOrSmaller => isAtMost(DeviceSize.tablet);