createElement method Null safety

  1. @override
  2. @factory
RenderObjectElement createElement()
@factory, override

RenderObjectWidgets always inflate to a RenderObjectElement subclass.

Implementation

@override
@factory
RenderObjectElement createElement();