Skip to content

Commit

Permalink
add the property in the copyWith(), lerp() and props
Browse files Browse the repository at this point in the history
  • Loading branch information
soraef committed Oct 21, 2024
1 parent 7735ead commit d564d43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/chart/radar_chart/radar_chart_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ class RadarChartData extends BaseChartData with EquatableMixin {
BorderSide? tickBorderData,
BorderSide? gridBorderData,
RadarTouchData? radarTouchData,
bool? isMinValueAtCenter,
FlBorderData? borderData,
}) =>
RadarChartData(
Expand All @@ -219,6 +220,7 @@ class RadarChartData extends BaseChartData with EquatableMixin {
tickBorderData: tickBorderData ?? this.tickBorderData,
gridBorderData: gridBorderData ?? this.gridBorderData,
radarTouchData: radarTouchData ?? this.radarTouchData,
isMinValueAtCenter: isMinValueAtCenter ?? this.isMinValueAtCenter,
borderData: borderData ?? this.borderData,
);

Expand All @@ -245,6 +247,7 @@ class RadarChartData extends BaseChartData with EquatableMixin {
radarShape: b.radarShape,
tickBorderData: BorderSide.lerp(a.tickBorderData, b.tickBorderData, t),
borderData: FlBorderData.lerp(a.borderData, b.borderData, t),
isMinValueAtCenter: b.isMinValueAtCenter,
radarTouchData: b.radarTouchData,
);
} else {
Expand All @@ -269,6 +272,7 @@ class RadarChartData extends BaseChartData with EquatableMixin {
tickBorderData,
gridBorderData,
radarTouchData,
isMinValueAtCenter,
];
}

Expand Down

0 comments on commit d564d43

Please sign in to comment.