rebuildOnScopeChanges function

bool? rebuildOnScopeChanges()

Will trigger a rebuild of the Widget if any new GetIt-Scope is pushed or popped. This function will return true if the change was a push otherwise false. If no change has happened then the return value will be null.

Implementation

bool? rebuildOnScopeChanges() {
  assert(_activeWatchItState != null,
      'rebuildOnScopeChanges can only be called inside a build function within a WatchingWidget or a widget using the WatchItMixin');
  return _activeWatchItState!.rebuildOnScopeChanges();
}