getScreenSize function Null safety

_ScreenSize getScreenSize(
  1. double width
)

Implementation

_ScreenSize getScreenSize(double width) {
  if (width < _smallBreakPoint) {
    return _ScreenSize.mobile;
  } else if (width < _mediumBreakPoint) {
    return _ScreenSize.tablet;
  } else {
    return _ScreenSize.desktop;
  }
}