lerp static method
Linearly interpolates between two ColorRoles.
Implementation
static ColorRole? lerp(ColorRole? a, ColorRole? b, double t) {
if (identical(a, b)) return a;
if (a == null || b == null) return t < 0.5 ? a : b;
return ColorRole(
Color.lerp(a.background, b.background, t)!,
Color.lerp(a.text, b.text, t)!,
);
}