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

createRenderObject method

  • @override

dynamic createRenderObject (dynamic context)

Implementation

@override
RenderBox createRenderObject(BuildContext context) {
  if (connection?.usePlatformView == true) {
    return ChildViewRenderBox2(
      connection: connection,
      hitTestable: hitTestable,
      focusable: focusable,
    );
  } else {
    return ChildViewRenderBox(
      connection: connection,
      hitTestable: hitTestable,
      focusable: focusable,
    );
  }
}