operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

This operator compares to GgValue objects based on the value. When given, the compare function is used to make the comparison.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
    other is GgValue<T> &&
        ((compare != null && compare!(_value, other._value)) ||
            _value == other._value);