isLandscape method Null safety

bool isLandscape()

check if the current context is with landscape view

Implementation

bool isLandscape(){
  return this.orientation == Orientation.landscape && this.isPortraitLandscape();
}