update method
Called when the override of a provider changes.
See also:
overrideWithValue
, which relies on update to handle the scenario where the value changed.
Implementation
@protected
@mustCallSuper
// ignore: use_setters_to_change_properties
void update(ProviderBase<State> newProvider) {
_provider = newProvider;
}