cIsPort property

bool get cIsPort

Checks if the device screen is in portrait mode by comparing the orientation from MediaQuery.of(context).

Implementation

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