firstBreakpointNamed method Null safety

ResponsiveBreakpoint? firstBreakpointNamed(
  1. String name
)

Implementation

ResponsiveBreakpoint? firstBreakpointNamed(String name) => breakpointSegments
    .firstWhere((element) => element.responsiveBreakpoint.name == name,
        orElse: null)
    .responsiveBreakpoint;