isPortrait property

bool get isPortrait

check if device is on portrait mode

Implementation

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