const double desktopBreakpoint = 1200; const double tabletBreakpoint = 960; bool isDesktop(double width) => width >= desktopBreakpoint; bool isTablet(double width) => width >= tabletBreakpoint && width < desktopBreakpoint; bool isMobile(double width) => width < tabletBreakpoint;