makeAnimatedBar method
AnimatedBar<D>
makeAnimatedBar({
- required String key,
- required ImmutableSeries<
D> series, - List<
int> ? dashPattern, - dynamic datum,
- Color? color,
- required BarRendererElement<
D> details, - D? domainValue,
- required ImmutableAxis<
D> domainAxis, - required int domainWidth,
- num? measureValue,
- required num measureOffsetValue,
- required ImmutableAxis<
num> measureAxis, - double? measureAxisPosition,
- Color? fillColor,
- FillPatternType? fillPattern,
- double? strokeWidthPx,
- required int barGroupIndex,
- double? previousBarGroupWeight,
- double? barGroupWeight,
- List<
double> ? allBarGroupWeights, - required int numBarGroups,
- bool? measureIsNull,
- bool? measureIsNegative,
Generates an AnimatedBar
to represent the previous and current state
of one bar on the chart.
Implementation
@override
AnimatedBar<D> makeAnimatedBar(
{required String key,
required ImmutableSeries<D> series,
List<int>? dashPattern,
dynamic datum,
Color? color,
required BarRendererElement<D> details,
D? domainValue,
required ImmutableAxis<D> domainAxis,
required int domainWidth,
num? measureValue,
required num measureOffsetValue,
required ImmutableAxis<num> measureAxis,
double? measureAxisPosition,
Color? fillColor,
FillPatternType? fillPattern,
double? strokeWidthPx,
required int barGroupIndex,
double? previousBarGroupWeight,
double? barGroupWeight,
List<double>? allBarGroupWeights,
required int numBarGroups,
bool? measureIsNull,
bool? measureIsNegative}) {
return AnimatedBar<D>(
key: key, datum: datum, series: series, domainValue: domainValue)
..setNewTarget(makeBarRendererElement(
color: color,
dashPattern: dashPattern,
details: details,
domainValue: domainValue,
domainAxis: domainAxis,
domainWidth: domainWidth,
measureValue: measureValue,
measureOffsetValue: measureOffsetValue,
measureAxisPosition: measureAxisPosition,
measureAxis: measureAxis,
fillColor: fillColor,
fillPattern: fillPattern,
strokeWidthPx: strokeWidthPx,
barGroupIndex: barGroupIndex,
previousBarGroupWeight: previousBarGroupWeight,
barGroupWeight: barGroupWeight,
allBarGroupWeights: allBarGroupWeights,
numBarGroups: numBarGroups,
measureIsNull: measureIsNull,
measureIsNegative: measureIsNegative));
}