updateShouldNotify method
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;
}
}