find method
Implementation
T find(double width) {
Breakpoints globalBreakpoints = ResponsiveSpacing.globalBreakpoints;
if (globalBreakpoints.xl.enabled && width >= globalBreakpoints.xl.width) {
return xl(width);
}
if (globalBreakpoints.lg.enabled && width >= globalBreakpoints.lg.width) {
return lg(width);
}
if (globalBreakpoints.md.enabled && width >= globalBreakpoints.md.width) {
return md(width);
}
if (globalBreakpoints.sm2.enabled && width >= globalBreakpoints.sm2.width) {
return sm2(width);
}
if (globalBreakpoints.sm1.enabled && width >= globalBreakpoints.sm1.width) {
return sm1(width);
}
return xs(width);
}