Pointer 的等价性只取决于它们的地址。
bool operator ==(Object other) { if (other is! Pointer) return false; Pointer otherPointer = other; return address == otherPointer.address; }