getBreakpoint static method
Determines the breakpoint based on width.
Implementation
static TBreakpoint getBreakpoint(double width) {
if (width >= kDesktopBreakpoint) return TBreakpoint.lg;
if (width >= kMobileBreakpoint) return TBreakpoint.md;
return TBreakpoint.sm;
}