lerp method Null safety

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

Linearly interpolate between two densities.

Implementation

static VisualDensity lerp(VisualDensity a, VisualDensity b, double t) {
  return VisualDensity(
    horizontal: lerpDouble(a.horizontal, b.horizontal, t)!,
    vertical: lerpDouble(a.vertical, b.vertical, t)!,
  );
}