whenDevice<T> method
T
whenDevice<T>({
- required ValueGetter<
T> mobile, - required ValueGetter<
T> tablet, - required ValueGetter<
T> desktop,
When current size resent mobile
, tablet
, desktop
Implementation
T whenDevice<T>(
{required ValueGetter<T> mobile,
required ValueGetter<T> tablet,
required ValueGetter<T> desktop}) =>
when(xs: mobile, s: mobile, m: tablet, l: desktop, xl: desktop);