update method

  1. @internal
void update(
  1. ProviderBase<StateT> 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

@internal
// ignore: use_setters_to_change_properties
void update(ProviderBase<StateT> newProvider) {
  _provider = newProvider;
}