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 {
    ServiceId? other = obj is ServiceId ? obj : null;

    if (other == null) {
      return false;
    } else if (!(this.IsValid && other.IsValid)) {
      return false;
    } else {
      return this.UniqueId == other.UniqueId;
    }
  }
}