build method
Build the host. This can only be called once.
Implementation
Host build() {
if (_hostBuilt) {
throw Exception('Build can only be called once.');
}
_hostBuilt = true;
_hostBuilderAdapter?.applyChanges();
_appServices = _createServiceProvider();
_serviceCollection.makeReadOnly();
return resolveHost(_appServices!);
}