updateShouldNotify method

  1. @override
bool updateShouldNotify(
  1. covariant FeedbackRepoProvider oldWidget
)
override

Determines whether dependent widgets should rebuild when this provider updates.

Returns true if the feedbackRepository instance has changed, which will trigger a rebuild of all dependent widgets.

Implementation

@override
bool updateShouldNotify(FeedbackRepoProvider oldWidget) {
  return oldWidget.feedbackRepository != feedbackRepository;
}