isPortrait method

bool isPortrait()

@Description check if the current context is with portrait view @Return: bool => bool check for this condition

Implementation

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