Google is committed to advancing racial equity for Black communities. See how.

updateRenderObject method

  • @override

void updateRenderObject (dynamic context, dynamic renderObject)

Implementation

@override
void updateRenderObject(BuildContext context, RenderObject renderObject) {
  assert(renderObject is ChildViewRenderBox ||
      renderObject is ChildViewRenderBox2);
  if (renderObject is ChildViewRenderBox) {
    renderObject
      ..connection = connection
      ..hitTestable = hitTestable
      ..focusable = focusable;
  } else if (renderObject is ChildViewRenderBox2) {
    renderObject
      ..connection = connection
      ..hitTestable = hitTestable
      ..focusable = focusable;
  }
}