isDesktop static method

bool isDesktop(
  1. BuildContext context
)

It tells you if the screen is desktop so you don't have to put the condition

Implementation

static bool isDesktop(BuildContext context) {
  return (screenSize(context) == ScreenSize.desktop) ? true : false;
}