firstBreakpointNamed method

ResponsiveBreakpoint? firstBreakpointNamed(
  1. String name
)

Implementation

ResponsiveBreakpoint? firstBreakpointNamed(String name) {
  try {
    return breakpointSegments
        .firstWhere((element) => element.responsiveBreakpoint.name == name)
        .responsiveBreakpoint;
  } on StateError {
    // ignore: empty_catches
  }

  return null;
}