updateShouldNotify method

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