createElement method Null safety

  1. @override
_OffstageElement createElement()
override

RenderObjectWidgets always inflate to a RenderObjectElement subclass.

Implementation

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