popScope method

Future<void> popScope()

Disposes all factories/Singletons that have ben registered in this scope and pops (destroys) the scope so that the previous scope gets active again. if you provided dispose functions on registration, they will be called. if you passed a dispose function when you pushed this scope it will be calles before the scope is popped. As dispose funcions can be async, you should await this function.

Implementation

Future<void> popScope() => locator.popScope();