lerp static method

Returns the gauge theme data

Implementation

static SfGaugeThemeData? lerp(
    SfGaugeThemeData? a, SfGaugeThemeData? b, double t) {
  if (a == null && b == null) {
    return null;
  }
  return SfGaugeThemeData(
    backgroundColor: Color.lerp(a!.backgroundColor, b!.backgroundColor, t)!,
    titleColor: Color.lerp(a.titleColor, b.titleColor, t),
    axisLabelColor: Color.lerp(a.axisLabelColor, b.axisLabelColor, t),
    axisLineColor: Color.lerp(a.axisLineColor, b.axisLineColor, t),
    majorTickColor: Color.lerp(a.majorTickColor, b.majorTickColor, t),
    minorTickColor: Color.lerp(a.minorTickColor, b.minorTickColor, t),
    markerColor: Color.lerp(a.markerColor, b.markerColor, t),
    markerBorderColor:
        Color.lerp(a.markerBorderColor, b.markerBorderColor, t)!,
    needleColor: Color.lerp(a.needleColor, b.needleColor, t),
    knobColor: Color.lerp(a.knobColor, b.knobColor, t),
    knobBorderColor: Color.lerp(a.knobBorderColor, b.knobBorderColor, t)!,
    tailColor: Color.lerp(a.tailColor, b.tailColor, t),
    tailBorderColor: Color.lerp(a.tailBorderColor, b.tailBorderColor, t)!,
    rangePointerColor:
        Color.lerp(a.rangePointerColor, b.rangePointerColor, t),
    rangeColor: Color.lerp(a.rangeColor, b.rangeColor, t),
    titleBorderColor: Color.lerp(a.titleBorderColor, b.titleBorderColor, t)!,
    titleBackgroundColor:
        Color.lerp(a.titleBackgroundColor, b.titleBackgroundColor, t)!,
  );
}