disposable_provider

DisposableProvider is thin wrapper of Provider and it calls dispose automatically.

Example