operator == method

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

Overrides the equality operator.

Parameters:

  • other: The object to compare with.

Returns:

  • true if the objects are equal, false otherwise.

Implementation

@override
bool operator ==(Object other) {
  if (identical(this, other)) return true;
  if (other is T) {
    return other == rawValue;
  }
  return other is JsonField<T> &&
      other.fieldName == fieldName &&
      other.rawValue == rawValue;
}