isBreakpoint method
Checks if the current screen width matches a custom breakpoint Returns true if the screen width is greater than or equal to the specified breakpoint Returns false if the breakpoint name is not found in customBreakpoints
Implementation
bool isBreakpoint(String breakpointName) {
final customBreakpoints =
ResponsiveMediaBreakpointConfig.customBreakpoints;
if (!customBreakpoints.containsKey(breakpointName)) {
return false;
}
return screenWidth >= customBreakpoints[breakpointName]!;
}