makeAnimatedBar method

  1. @override
AnimatedBar<D> makeAnimatedBar({
  1. required String key,
  2. required ImmutableSeries<D> series,
  3. required BarRendererElement<D> 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. List<int>? dashPattern,
  11. dynamic datum,
  12. Color? color,
  13. D? domainValue,
  14. num? measureValue,
  15. double? measureAxisPosition,
  16. Color? fillColor,
  17. FillPatternType? fillPattern,
  18. double? strokeWidthPx,
  19. double? previousBarGroupWeight,
  20. double? barGroupWeight,
  21. List<double>? allBarGroupWeights,
  22. bool? measureIsNull,
  23. 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,
        ),
      );