currentBreakpoint property

String get currentBreakpoint

Get current breakpoint name

Implementation

static String get currentBreakpoint {
  final width = ScreenUtil.instance.screenWidth;
  if (width >= largeDesktop) return 'largeDesktop';
  if (width >= desktop) return 'desktop';
  if (width >= mobile) return 'tablet';
  if (width >= largeMobile) return 'largeMobile';
  if (width >= smallMobile) return 'mobile';
  return 'smallMobile';
}