lerp static method

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) {
  if (identical(a, b)) {
    return a;
  }
  return VisualDensity(
    horizontal: lerpDouble(a.horizontal, b.horizontal, t)!,
    vertical: lerpDouble(a.vertical, b.vertical, t)!,
  );
}