lerp static method

Linearly interpolate between two typographies.

Implementation

static MacosTypography lerp(MacosTypography a, MacosTypography b, double t) {
  return MacosTypography.raw(
    largeTitle: TextStyle.lerp(a.largeTitle, b.largeTitle, t)!,
    title1: TextStyle.lerp(a.title1, b.title1, t)!,
    title2: TextStyle.lerp(a.title2, b.title2, t)!,
    title3: TextStyle.lerp(a.title3, b.title3, t)!,
    headline: TextStyle.lerp(a.headline, b.headline, t)!,
    subheadline: TextStyle.lerp(a.subheadline, b.subheadline, t)!,
    body: TextStyle.lerp(a.body, b.body, t)!,
    callout: TextStyle.lerp(a.callout, b.callout, t)!,
    footnote: TextStyle.lerp(a.footnote, b.footnote, t)!,
    caption1: TextStyle.lerp(a.caption1, b.caption1, t)!,
    caption2: TextStyle.lerp(a.caption2, b.caption2, t)!,
  );
}