equals method

bool equals(
  1. Object? other
)

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