comparator property

EqualityComparator<T>? comparator

A custom comparator that can be used to determine if a new value for value is equal to the current value or not. This is used in the setter for value and if the new value is equal to the current one, then the current value will not be changed and therefore no listeners will be notified.

By default, objects are compared using the == operator.

Implementation

EqualityComparator<T>? get comparator;