updateRenderObject method

  1. @override
void updateRenderObject(
  1. RenderObject renderObject
)
override

Implementation

@override
void updateRenderObject(RenderObject renderObject) {
  final ro = renderObject as _RenderBarChart;
  ro
    ..values = values
    ..chartWidth = width
    ..chartHeight = height
    ..barStyle = barStyle ?? const UvStyle()
    ..axisStyle = axisStyle ?? const UvStyle()
    ..gridStyle = gridStyle ?? const UvStyle()
    ..labelStyle = labelStyle ?? const UvStyle()
    ..showAxis = showAxis
    ..showGrid = showGrid
    ..gridRows = gridRows
    ..gridCols = gridCols
    ..xLabels = xLabels
    ..yLabels = yLabels
    ..legendEntries = legendEntries
    ..legendColumns = legendColumns
    ..legendRowGap = legendRowGap
    ..legendPosition = legendPosition
    ..legendPadding = legendPadding
    ..barChar = barChar
    ..barGap = barGap
    ..crosshairX = crosshairX
    ..crosshairY = crosshairY
    ..crosshairStyle = crosshairStyle;
}