isPortrait property

bool get isPortrait

This will return Orientation object and you can check is the portrait

Implementation

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