isNarrow property

bool get isNarrow

Returns true if MediaQuery's width is less than 600p on desktop and MediaQuery's shortest side is less than 600p on mobile.

Implementation

bool get isNarrow =>
    PlatformUtils.isDesktop
        ? MediaQuery.sizeOf(this).width < 600
        : MediaQuery.sizeOf(this).shortestSide < 600;