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