build method

Host build()

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

Implementation

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

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

  return resolveHost(_appServices!);
}