My question stems from the Flutter Documentation on simple state management,
... Note that we’re defining a builder that creates a new instance of CartModel. ChangeNotifierProvider is smart enough not to rebuild CartModel unless absolutely necessary. It also automatically calls dispose() on CartModel when the instance is no longer needed.
When does dispose()
get called on some given ChangeNotifier model?