push method

void push({
  1. String? name,
})

Create a new scope and put it at the end of the stack

Implementation

void push({String? name}) {
  current = ServiceContainer(name: name, parent: current);
}