isDesktop method

bool isDesktop()

Checks if the current screen type is desktop.

Returns true if the screen type is ScreenType.desktop, false otherwise.

Implementation

bool isDesktop() {
  return screenType == ScreenType.desktop;
}