updateRenderObject method
Updates the render object when the widget is rebuilt.
This method regenerates the list of sizes and marks the render object as needing layout.
Implementation
@override
void updateRenderObject(BuildContext context, RenderSliverRow renderObject) {
renderObject
..sizesValue = List.generate(
_children.length,
(index) {
final item = _children.elementAt(index);
return SliverRowSize(percent: item.percent, size: item.size);
},
)
..markNeedsLayout();
}