operator == method - Pointer class - dart:ffi library (original) (raw)

description

bool operator ==(

  1. Object other )

override

Equality for Pointers only depends on their address.

Implementation

bool operator ==(Object other) {
  if (other is! Pointer) return false;
  Pointer otherPointer = other;
  return address == otherPointer.address;
}