isPortrait property

bool isPortrait

shortcut for MediaQuery.of(context).orientation == Orientation.portrait

Implementation

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