build method

  1. @override
Host build()
override

Run the given actions to initialize the host. This can only be called once.

Implementation

@override
Host build() {
  if (_hostBuilt) {
    throw Exception('Build can only be called once.');
  }
  _hostBuilt = true;

  _initializeHostConfiguration();
  _initializeHostingEnvironment();
  _initializeHostBuilderContext();
  _initializeAppConfiguration();
  _initializeServiceProvider();

  return resolveHost(_appServices!);
}