lerp static method

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

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

Implementation

static SmallRegular lerp(SmallRegular a, SmallRegular? b, double t) {
  return SmallRegular._(
    danger: TextStyle.lerp(a.danger, b?.danger, t)!,
    onBackground: TextStyle.lerp(a.onBackground, b?.onBackground, t)!,
    onPrimary: TextStyle.lerp(a.onPrimary, b?.onPrimary, t)!,
    primary: TextStyle.lerp(a.primary, b?.primary, t)!,
    secondary: TextStyle.lerp(a.secondary, b?.secondary, t)!,
    secondaryHighlight:
        TextStyle.lerp(a.secondaryHighlight, b?.secondaryHighlight, t)!,
    secondaryHighlightDarkest: TextStyle.lerp(
        a.secondaryHighlightDarkest, b?.secondaryHighlightDarkest, t)!,
  );
}