createScope static method

LevitScope createScope(
  1. String name
)

Creates a new child scope branching from the current active scope.

child scopes can override parent dependencies and provide their own isolated lifecycle.

  • name: A descriptive name for the scope (used in profiling and logs).

Implementation

static LevitScope createScope(String name) {
  return currentScope.createScope(name);
}