operator == method

bool operator == (dynamic other)
override

Equality for Pointers only depends on their address.

Implementation

bool operator ==(other) {
  if (other == null) return false;
  return address == other.address;
}