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() {
state.needObservation = true;
try {
return super.build();
} on AccessWhileLoadingError {
return state.buildIndicator(this);
} catch (e) {
rethrow;
} finally {
state.needObservation = false;
}
}