lerp method
Linearly interpolate with another object.
Implementation
@override
SurfaceGroup lerp(SurfaceGroup? other, double t) {
if (other == null) return this;
return SurfaceGroup(
color: Color.lerp(color, other.color, t)!,
onColorContrast: Color.lerp(onColorContrast, other.onColorContrast, t)!,
onColorContrastDim: Color.lerp(onColorContrastDim, other.onColorContrastDim, t)!,
onColorSubtle: Color.lerp(onColorSubtle, other.onColorSubtle, t)!,
onColorSubtleDim: Color.lerp(onColorSubtleDim, other.onColorSubtleDim, t)!,
containerLowest: Color.lerp(containerLowest, other.containerLowest, t)!,
containerLow: Color.lerp(containerLow, other.containerLow, t)!,
container: Color.lerp(container, other.container, t)!,
containerHigh: Color.lerp(containerHigh, other.containerHigh, t)!,
containerHighest: Color.lerp(containerHighest, other.containerHighest, t)!,
link: Color.lerp(link, other.link, t)!,
onColorError: Color.lerp(onColorError, other.onColorError, t),
onColorSuccess: Color.lerp(onColorSuccess, other.onColorSuccess, t),
onColorPrimary: Color.lerp(onColorPrimary, other.onColorPrimary, t),
onColorPrimaryVariant: Color.lerp(onColorPrimaryVariant, other.onColorPrimaryVariant, t),
);
}