updateShouldNotify method

  1. @protected
bool updateShouldNotify(
  1. HomePageState prev,
  2. HomePageState next
)
inherited

Override this if you want to a different kind of equality.

Implementation

@protected
bool updateShouldNotify(T prev, T next) {
  switch (_notifyStrategy ?? NotifyStrategy.equality) {
    case NotifyStrategy.identity:
      return !identical(prev, next);
    case NotifyStrategy.equality:
      return prev != next;
  }
}