previousBreakpoint method
Returns null in one of these cases:
- the given breakpoint is
null. - the given breakpoint is the smallest breakpoint.
Implementation
@nonVirtual
B? previousBreakpoint(BreakpointId? id) {
final breakpoint = id == null ? null : breakpointById(id);
return breakpoints
.toList(growable: false)
.reversed
.firstWhereOrNull((bp) => bp < breakpoint);
}