largerThan method

bool largerThan(
  1. String breakpointName
)

Checks if the current screen width is larger than a custom breakpoint Returns true if the screen width is strictly greater than the specified breakpoint Returns false if the breakpoint name is not found in customBreakpoints

Implementation

bool largerThan(String breakpointName) {
  final customBreakpoints =
      ResponsiveMediaBreakpointConfig.customBreakpoints;
  if (!customBreakpoints.containsKey(breakpointName)) {
    return false;
  }
  return screenWidth > customBreakpoints[breakpointName]!;
}