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. The name is used for profiling and logs.

Implementation

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