createScope method

LevitScope createScope(
  1. String name
)

Creates a new child scope branching from this scope.

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

Parameters:

  • name: A descriptive name for debugging and profiling.

Implementation

LevitScope createScope(String name) {
  return LevitScope._(name, parentScope: this);
}