/// Override operator== of T class OverrideComparator { OverrideComparator(this.obj, this.equalFn, this.hashCodeFn); @override operator ==(Object other) => other is OverrideComparator && equalFn(obj, other.obj); @override get hashCode => hashCodeFn(obj); final T obj; final bool Function(T, T) equalFn; final int Function(T) hashCodeFn; }