lerp static method

Returns the spark chart theme data

Implementation

static SfSparkChartThemeData? lerp(
    SfSparkChartThemeData? a, SfSparkChartThemeData? b, double t) {
  if (a == null && b == null) {
    return null;
  }
  return SfSparkChartThemeData(
    backgroundColor: Color.lerp(a!.backgroundColor, b!.backgroundColor, t),
    color: Color.lerp(a.color, b.color, t),
    axisLineColor: Color.lerp(a.axisLineColor, b.axisLineColor, t),
    markerFillColor: Color.lerp(a.markerFillColor, b.markerFillColor, t),
    dataLabelBackgroundColor:
        Color.lerp(a.dataLabelBackgroundColor, b.dataLabelBackgroundColor, t),
    tooltipColor: Color.lerp(a.tooltipColor, b.tooltipColor, t),
    trackballLineColor:
        Color.lerp(a.trackballLineColor, b.trackballLineColor, t),
    tooltipLabelColor:
        Color.lerp(a.tooltipLabelColor, b.tooltipLabelColor, t),
    dataLabelTextStyle:
        TextStyle.lerp(a.dataLabelTextStyle, b.dataLabelTextStyle, t),
    trackballTextStyle:
        TextStyle.lerp(a.trackballTextStyle, b.trackballTextStyle, t),
  );
}