breakpointForWidth static method

Breakpoints breakpointForWidth(
  1. double width
)

Implementation

static Breakpoints breakpointForWidth(double width) {
  // Reuse setDeviceType to benefit from O(1) cache and neighbor fast paths.
  setDeviceType(width);
  return _orderedBreakpoints[_lastIndex];
}