makeAnimatedBar method
_AnimatedBarTargetLine<D>
makeAnimatedBar({
- required String key,
- required ImmutableSeries<
D> series, - dynamic datum,
- Color? color,
- List<
int> ? dashPattern, - required _BarTargetLineRendererElement 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,
- required int barGroupIndex,
- double? previousBarGroupWeight,
- double? barGroupWeight,
- List<
double> ? allBarGroupWeights, - required int numBarGroups,
- double? strokeWidthPx,
- bool? measureIsNull,
- bool? measureIsNegative,
Generates an _AnimatedBarTargetLine
to represent the previous and
current state of one bar target line on the chart.
Implementation
@override
_AnimatedBarTargetLine<D> makeAnimatedBar(
{required String key,
required ImmutableSeries<D> series,
dynamic datum,
Color? color,
List<int>? dashPattern,
required _BarTargetLineRendererElement 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,
required int barGroupIndex,
double? previousBarGroupWeight,
double? barGroupWeight,
List<double>? allBarGroupWeights,
required int numBarGroups,
double? strokeWidthPx,
bool? measureIsNull,
bool? measureIsNegative}) {
return _AnimatedBarTargetLine(
key: key, datum: datum, series: series, domainValue: domainValue)
..setNewTarget(makeBarRendererElement(
color: color,
details: details,
dashPattern: dashPattern,
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));
}