operator == method

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

Two pointers are equal if their address is the same, independently of their type argument and of the memory they are bound to.

Implementation

@override
bool operator ==(Object other) =>
    (other is Pointer && other.address == address);