lerp method Null safety
- VisualDensity a,
- VisualDensity b,
- 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)!,
);
}