isLargeScreen static method

bool isLargeScreen(
  1. BuildContext context
)

Implementation

static bool isLargeScreen(BuildContext context) {
  double width = MediaQuery.of(context).size.width;
  if (width >= breakpoints[largeScreen[0]]![0] &&
      width <= breakpoints[largeScreen[largeScreen.length - 1]]![1]) {
    return true;
  }
  return false;
}