isMobile method

bool isMobile()

Checks if the current screen type is mobile.

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

Implementation

bool isMobile() {
  return screenType == ScreenType.mobile;
}