isPortrait property

bool isPortrait

check if device is on portrait mode

Implementation

bool get isPortrait => orientation == Orientation.portrait;