isPortrait property

bool get isPortrait

Media query

Implementation

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