makeAnimatedBar method
AnimatedBar<D>
makeAnimatedBar({
- required String key,
- required ImmutableSeries<
D> series, - required BarRendererElement<
D> details, - required ImmutableAxis<
D> domainAxis, - required int domainWidth,
- required num measureOffsetValue,
- required ImmutableAxis<
num> measureAxis, - required int barGroupIndex,
- required int numBarGroups,
- List<
int> ? dashPattern, - dynamic datum,
- Color? color,
- D? domainValue,
- num? measureValue,
- double? measureAxisPosition,
- Color? fillColor,
- FillPatternType? fillPattern,
- double? strokeWidthPx,
- double? previousBarGroupWeight,
- double? barGroupWeight,
- List<
double> ? allBarGroupWeights, - 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,
required BarRendererElement<D> details,
required ImmutableAxis<D> domainAxis,
required int domainWidth,
required num measureOffsetValue,
required ImmutableAxis<num> measureAxis,
required int barGroupIndex,
required int numBarGroups,
List<int>? dashPattern,
dynamic datum,
Color? color,
D? domainValue,
num? measureValue,
double? measureAxisPosition,
Color? fillColor,
FillPatternType? fillPattern,
double? strokeWidthPx,
double? previousBarGroupWeight,
double? barGroupWeight,
List<double>? allBarGroupWeights,
bool? measureIsNull,
bool? measureIsNegative,
}) =>
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,
),
);