createElement method Null safety
override
RenderObjectWidgets always inflate to a RenderObjectElement subclass.
Implementation
@override
SingleChildRenderObjectElement createElement() => SingleChildRenderObjectElement(this);
RenderObjectWidgets always inflate to a RenderObjectElement subclass.
@override
SingleChildRenderObjectElement createElement() => SingleChildRenderObjectElement(this);