isDesktopDisplay method

bool isDesktopDisplay(
  1. Size size
)

Determines whether or not the current screen is a hamburger / hot dog orientation

Implementation

bool isDesktopDisplay(Size size) {
  if (size.width > size.height) {
    return true;
  } else if (size.width <= size.height) {
    return false;
  }

  throw ('An impossible ratio was returned when determining isDesktopDisplay');
}