smallerThan method
Checks if the current screen width is smaller than a custom breakpoint Returns true if the screen width is strictly less than the specified breakpoint Returns false if the breakpoint name is not found in customBreakpoints
Implementation
bool smallerThan(String breakpointName) {
final customBreakpoints =
ResponsiveMediaBreakpointConfig.customBreakpoints;
if (!customBreakpoints.containsKey(breakpointName)) {
return false;
}
return screenWidth < customBreakpoints[breakpointName]!;
}