makeBarRendererElement method
_BarTargetLineRendererElement
makeBarRendererElement({
- 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,
- double? strokeWidthPx,
- required int barGroupIndex,
- double? previousBarGroupWeight,
- double? barGroupWeight,
- List<
double> ? allBarGroupWeights, - required int numBarGroups,
- bool? measureIsNull,
- bool? measureIsNegative,
Generates a _BarTargetLineRendererElement
to represent the rendering
data for one bar target line on the chart.
Implementation
@override
_BarTargetLineRendererElement makeBarRendererElement(
{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,
double? strokeWidthPx,
required int barGroupIndex,
double? previousBarGroupWeight,
double? barGroupWeight,
List<double>? allBarGroupWeights,
required int numBarGroups,
bool? measureIsNull,
bool? measureIsNegative}) {
return _BarTargetLineRendererElement(roundEndCaps: details.roundEndCaps)
..color = color
..dashPattern = dashPattern
..fillColor = fillColor
..fillPattern = fillPattern
..measureAxisPosition = measureAxisPosition
..strokeWidthPx = strokeWidthPx
..measureIsNull = measureIsNull
..measureIsNegative = measureIsNegative
..points = _getTargetLinePoints(
domainValue,
domainAxis,
domainWidth,
config.maxBarWidthPx,
measureValue,
measureOffsetValue,
measureAxis,
barGroupIndex,
previousBarGroupWeight,
barGroupWeight,
allBarGroupWeights,
numBarGroups);
}