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