isPortrait method

bool isPortrait()

check if the current context is with portrait view

Implementation

bool isPortrait(){
  return this.orientation == Orientation.portrait && this.isPortraitLandscape();
}