isMobile static method

bool isMobile(
  1. BuildContext context
)

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

Implementation

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