equal method

bool equal(
  1. IPAddress other
)

Implementation

bool equal(IPAddress other) {
  return this.ip_bits.version == other.ip_bits.version &&
      this.prefix.equal(other.prefix) &&
      this.host_address == other.host_address &&
      ((this.mapped == null && this.mapped == other.mapped) ||
          this.mapped!.equal(other.mapped!));
}