createElement method Null safety

  1. @override
SingleChildRenderObjectElement createElement()
override

RenderObjectWidgets always inflate to a RenderObjectElement subclass.

Implementation

@override
SingleChildRenderObjectElement createElement() => SingleChildRenderObjectElement(this);