responsive<T> method
T
responsive<T>({
- required T base,
- T? sm,
- T? md,
- T? lg,
- T? xl,
- T? xxl,
Picks the highest-matching value for the current screen width, falling back to base.
Implementation
T responsive<T>({
required T base,
T? sm,
T? md,
T? lg,
T? xl,
T? xxl,
}) => ResponsiveBreakpoints.valueOf<T>(
screenWidth,
base: base,
sm: sm,
md: md,
lg: lg,
xl: xl,
xxl: xxl,
);