equals method
Returns true
if other
is equals to this.value
.
If other
is a NNField, compares with other.value
.
Implementation
bool equals(Object? other) {
if (other == null) return false;
if (other is NNField) {
return equals(other._value);
}
return _value == other;
}