lerp static method

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

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

Implementation

static Giant lerp(Giant a, Giant? b, double t) {
  return Giant._(
    bold: GiantBold.lerp(a.bold, b?.bold, t),
    regular: GiantRegular.lerp(a.regular, b?.regular, t),
  );
}