lerp static method

MediumRegular lerp(
  1. MediumRegular a,
  2. MediumRegular? b,
  3. double t
)

Linearly interpolates the provided objects based on the given t value.

Implementation

static MediumRegular lerp(MediumRegular a, MediumRegular? b, double t) {
  return MediumRegular._(
    onBackground: TextStyle.lerp(a.onBackground, b?.onBackground, t)!,
    onPrimary: TextStyle.lerp(a.onPrimary, b?.onPrimary, t)!,
    primary: TextStyle.lerp(a.primary, b?.primary, t)!,
    primaryHighlightLightest: TextStyle.lerp(
      a.primaryHighlightLightest,
      b?.primaryHighlightLightest,
      t,
    )!,
    secondary: TextStyle.lerp(a.secondary, b?.secondary, t)!,
  );
}