operator == method

  1. @override
bool operator ==(
  1. Object obj
)
override
Determines whether the specified The

Implementation

@override
bool operator ==(obj) {
  if (identical(this, obj)) {
    return true;
  } else {
    Mailbox? other = obj is Mailbox ? obj : null;

    if (other == null) {
      return false;
    } else if (((this.Address == null) && (other.Address == null)) ||
        ((this.Address != null) && this.Address == other.Address)) {
      return ((this.RoutingType == null) && (other.RoutingType == null)) ||
          ((this.RoutingType != null) &&
              this.RoutingType == other.RoutingType);
    } else {
      return false;
    }
  }
}