makeAnimatedBar method

  1. @override
_AnimatedBarTargetLine<D> makeAnimatedBar({
  1. required String key,
  2. required ImmutableSeries<D> series,
  3. dynamic datum,
  4. Color? color,
  5. List<int>? dashPattern,
  6. required _BarTargetLineRendererElement details,
  7. D? domainValue,
  8. required ImmutableAxis<D> domainAxis,
  9. required int domainWidth,
  10. num? measureValue,
  11. required num measureOffsetValue,
  12. required ImmutableAxis<num> measureAxis,
  13. double? measureAxisPosition,
  14. Color? fillColor,
  15. FillPatternType? fillPattern,
  16. required int barGroupIndex,
  17. double? previousBarGroupWeight,
  18. double? barGroupWeight,
  19. List<double>? allBarGroupWeights,
  20. required int numBarGroups,
  21. double? strokeWidthPx,
  22. bool? measureIsNull,
  23. 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));
}