responsiveValue<T> method

T? responsiveValue<T>({
  1. T? mobile,
  2. T? tablet,
  3. T? desktop,
  4. T? watch,
})

Returns a value based on the current screen type.

Implementation

T? responsiveValue<T>({T? mobile, T? tablet, T? desktop, T? watch}) {
  return responsiveValueOf(
    context,
    mobile: mobile,
    tablet: tablet,
    desktop: desktop,
    watch: watch,
  );
}