markDidChange method

  1. @protected
void markDidChange()

Notify that the state associated to this provider have changes. This will cause dependent widgets and providers to rebuild.

Implementation

@protected
void markDidChange() {
  if (!_didMount) {
    return;
  }
  assert(() {
    RiverpodBinding.debugInstance.providerChanged(
      containerId: container.debugId,
      providerId: provider.debugId,
    );
    return true;
  }(), '');
  _notificationCount++;
  notifyMayHaveChanged();
}