lerp static method

Implementation

static ZeroRatingStyle lerp(
    ZeroRatingStyle? a, ZeroRatingStyle? b, double t) {
  return ZeroRatingStyle(
    activeColor: Color.lerp(a?.activeColor, b?.activeColor, t),
    inactiveColor: Color.lerp(a?.inactiveColor, b?.inactiveColor, t),
    spacing: t < 0.5 ? a?.spacing : b?.spacing,
  );
}