operator == method

bool operator ==(
  1. Object other
)
override

Compares for equality of this and other BluetoothDevice.

In fact, only address is compared, since this is most important and unchangable information that identifies each device.

Implementation

operator ==(Object other) {
  return other is BluetoothDevice && other.address == this.address;
}