combine<R, U> method

FSResponsiveValue<R> combine<R, U>(
  1. FSResponsiveValue<U> other,
  2. R combiner(
    1. T,
    2. U
    )
)

Create a new responsive value by combining with another

Implementation

FSResponsiveValue<R> combine<R, U>(
  FSResponsiveValue<U> other,
  R Function(T, U) combiner,
) {
  return FSResponsiveValue<R>(
    xs: combiner(xs, other.xs),
    sm: combiner(sm, other.sm),
    md: combiner(md, other.md),
    lg: combiner(lg, other.lg),
    xl: combiner(xl, other.xl),
    xxl: combiner(xxl, other.xxl),
  );
}