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