refactor: Use Object.hash instead of hashCode ^
This commit is contained in:
parent
3e35120aa1
commit
2d73192a40
|
|
@ -462,8 +462,11 @@ class LiveKitBackend extends CallBackend {
|
|||
livekitAlias == other.livekitAlias;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
type.hashCode ^ livekitServiceUrl.hashCode ^ livekitAlias.hashCode;
|
||||
int get hashCode => Object.hash(
|
||||
type.hashCode,
|
||||
livekitServiceUrl.hashCode,
|
||||
livekitAlias.hashCode,
|
||||
);
|
||||
|
||||
/// get everything else from your livekit sdk in your client
|
||||
@override
|
||||
|
|
|
|||
|
|
@ -103,15 +103,16 @@ class CallMembership {
|
|||
membershipId == other.membershipId;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
userId.hashCode ^
|
||||
roomId.hashCode ^
|
||||
callId.hashCode ^
|
||||
application.hashCode ^
|
||||
scope.hashCode ^
|
||||
backend.type.hashCode ^
|
||||
deviceId.hashCode ^
|
||||
membershipId.hashCode;
|
||||
int get hashCode => Object.hash(
|
||||
userId.hashCode,
|
||||
roomId.hashCode,
|
||||
callId.hashCode,
|
||||
application.hashCode,
|
||||
scope.hashCode,
|
||||
backend.type.hashCode,
|
||||
deviceId.hashCode,
|
||||
membershipId.hashCode,
|
||||
);
|
||||
|
||||
// with a buffer of 1 minute just incase we were slow to process a
|
||||
// call event, if the device is actually dead it should
|
||||
|
|
|
|||
|
|
@ -35,5 +35,5 @@ class CallParticipant {
|
|||
deviceId == other.deviceId;
|
||||
|
||||
@override
|
||||
int get hashCode => userId.hashCode ^ deviceId.hashCode;
|
||||
int get hashCode => Object.hash(userId.hashCode, deviceId.hashCode);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,5 +20,5 @@ class VoipId {
|
|||
other is VoipId && roomId == other.roomId && callId == other.callId;
|
||||
|
||||
@override
|
||||
int get hashCode => roomId.hashCode ^ callId.hashCode;
|
||||
int get hashCode => Object.hash(roomId.hashCode, callId.hashCode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue