operator == method

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

For now devices are unique based on their IP addresses irrespective of ports.

Implementation

@override
bool operator ==(Object other) =>
    identical(this, other) ||
        other is Device && runtimeType == other.runtimeType && _ip == other._ip;