makeAnimatedBar method

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