update method

  1. @protected
  2. @mustCallSuper
void update(
  1. ProviderBase<State> newProvider
)

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;
}