Implement a provider
Overrideregister() for service bindings. Override boot() for asynchronous work that may resolve services after all providers have registered.
lib/src/providers/aws/s3_client_provider.dart
Register providers
Add a provider directly withapp.register() or organize providers with app.registerGroup().
example/main.dart
register() when you add it. During boot(), it initializes eager container services and then invokes each provider’s boot() method. Registering the same provider instance twice raises ProviderException.duplicateRegistration.
React to startup and shutdown
Register a synchronous post-boot callback withonBooted(). Use container disposal callbacks for resources that must close when App.shutdown() runs.
lib/src/bootstrap.dart