updateShouldNotify method

  1. @protected
bool updateShouldNotify(
  1. T prev,
  2. T 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;
  }
}