isLandscape method

bool isLandscape()

True if device orientation is landscape.

Implementation

bool isLandscape() => MediaQuery.of(this).orientation == Orientation.landscape;