isTablet property

bool get isTablet

Returns true if the window is medium (600 dp ≤ width < 840 dp).

Typically a large phone in landscape or a tablet in portrait. Threshold: ContextBreakpoints.mediumContextBreakpoints.mediumEnd.

Implementation

bool get isTablet =>
    width >= ContextBreakpoints.medium &&
    width < ContextBreakpoints.mediumEnd;