initializeKernel static method

void initializeKernel(
  1. TerraEnvironment environment, {
  2. int httpClientTimeoutSeconds = 120,
})

intialises the kernel that manages terra-dart

Implementation

static void initializeKernel(TerraEnvironment environment,
    {int httpClientTimeoutSeconds = 120}) {
  configureTerraEnvironment(environment);
  HttpBehaviourConstants.defaultHttpTimeoutSeconds = httpClientTimeoutSeconds;

  loadAllModules(); // Load all modules for dependency injection
}