build method
Subclasses should override this function to actually call the appropriate
build
function (e.g., StatelessWidget.build or State.build) for
their widget.
Implementation
@override
Widget build() {
if (_instanceOrStatesDirty.isNotEmpty) {
notifyClients(widget);
return _widget!;
}
if (parent != null) {
return _widget = widget._buildWithChild(parent?.injectedChild);
}
return _widget = widget.build(this);
}