isPortrait method

bool isPortrait()

True is device orientation is portrait.

Implementation

bool isPortrait() => MediaQuery.of(this).orientation == Orientation.portrait;