createRenderObject method

*<Null safety>*
  • @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,
    );
  }
}