insertRenderObjectChild method
void
insertRenderObjectChild(
- covariant RenderObject child,
- covariant IndexedSlot<
Element?> slot
override
Insert the given child into renderObject at the given slot.
The semantics of slot
are determined by this element. For example, if
this element has a single child, the slot should always be null. If this
element has a list of children, the previous sibling element wrapped in an
IndexedSlot is a convenient value for the slot.
Implementation
@override
void insertRenderObjectChild(RenderObject child, IndexedSlot<Element?> slot) {
super.insertRenderObjectChild(child, slot);
if (child is RenderRulers) {
renderObject.addRuler(child);
} else if (child is RenderRulerLabel) {
renderObject.addRulerLabel(child);
} else if (child is RenderLinearGaugeWidgetPointer) {
renderObject.addWidgetPointer(child);
} else if (child is RenderLinearGaugeShapePointer) {
renderObject.addShapePointer(child);
} else if (child is RenderValueBar) {
renderObject.addValueBar(child);
} else if (child is RenderCurve) {
renderObject.addCurve(child);
}
}