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