debugIsValidRenderObject method

  1. @override
bool debugIsValidRenderObject(
  1. RenderObject renderObject
)
override

Checks if this widget can apply its parent data to the provided renderObject.

The RenderObject.parentData of the provided renderObject is typically set up by an ancestor RenderObjectWidget of the type returned by debugTypicalAncestorWidgetClass.

This is called just before applyParentData is invoked with the same RenderObject provided to that method.

Implementation

@override
bool debugIsValidRenderObject(RenderObject renderObject) {
  return renderObject.parentData is SkillParentData;
}