operator == method

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

Return true if the given object is a source that represents the same source code as this source.

@param object the object to be compared with this object @return true if the given object is a source that represents the same source code as this source See Object.==.

Implementation

@override
bool operator ==(Object other) {
  if (other is FileSource) {
    return id == other.id;
  } else if (other is Source) {
    return uri == other.uri;
  }
  return false;
}