isTablet property

bool get isTablet

Whether the current layout width class is DeviceSize.tablet.

Reports the layout width class (a medium-width window) derived from the ResponsiveScopenot the OS / device platform (see DevicePlatform).

Implementation

bool get isTablet => deviceSize == DeviceSize.tablet;