operator == method

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

Soketlerin dinleyicisi her soket için ayrı ayrı oluşturuluyor

Implementation

@override
// ignore: avoid_equals_and_hash_code_on_mutable_classes
bool operator ==(Object other) {
  if (other.runtimeType != WebSocketListener) {
    throw Exception("WebSocketListener not have "
        "equals operator with : ${other.runtimeType}");
  } else if (other is WebSocketListener) {
    var socketListener = other;
    return deviceID == socketListener.deviceID;
  }
  throw Exception("WebSocketListener not have "
      "equals operator with : ${other.runtimeType}");
}