dispose abstract method

Future<void> dispose()

Disposes all singletons and runs disposal callbacks in reverse order.

Should be called during app shutdown or test teardown.

await container.dispose();

Implementation

Future<void> dispose();