operator == method Null safety

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

Equality operator to compare two Screen instances.

Two Screens are considered equal if all the fields match.

Implementation

@override
bool operator ==(Object other) {
  return other is Screen &&
      other.pairingCode == pairingCode &&
      other.paired == paired &&
      other.name == name &&
      other.userID == userID &&
      other.screenToken == screenToken &&
      other.width == width &&
      other.height == height;
}