Merge pull request #1927 from famedly/td/objectHelperOverrides

feat: BREAKING CHANGE add equality, hashcode and toString helper overrides to autogenerated code
This commit is contained in:
td 2024-10-18 14:13:25 +02:00 committed by GitHub
commit b6945e763d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 1234 additions and 8 deletions

View File

@ -1,2 +1,2 @@
flutter_version=3.22.2
flutter_version=3.24.3
dart_version=3.5.3

File diff suppressed because it is too large Load Diff

View File

@ -456,10 +456,10 @@ class LiveKitBackend extends CallBackend {
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is LiveKitBackend &&
(other is LiveKitBackend &&
type == other.type &&
livekitServiceUrl == other.livekitServiceUrl &&
livekitAlias == other.livekitAlias;
livekitAlias == other.livekitAlias);
@override
int get hashCode => Object.hash(

View File

@ -843,7 +843,7 @@ class MeshBackend extends CallBackend {
@override
bool operator ==(Object other) =>
identical(this, other) || other is MeshBackend && type == other.type;
identical(this, other) || (other is MeshBackend && type == other.type);
@override
int get hashCode => type.hashCode;

View File

@ -30,9 +30,9 @@ class CallParticipant {
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is CallParticipant &&
(other is CallParticipant &&
userId == other.userId &&
deviceId == other.deviceId;
deviceId == other.deviceId);
@override
int get hashCode => Object.hash(userId.hashCode, deviceId.hashCode);

View File

@ -17,7 +17,7 @@ class VoipId {
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is VoipId && roomId == other.roomId && callId == other.callId;
(other is VoipId && roomId == other.roomId && callId == other.callId);
@override
int get hashCode => Object.hash(roomId.hashCode, callId.hashCode);

View File

@ -35,7 +35,7 @@ dependencies:
webrtc_interface: ^1.2.0
dev_dependencies:
build_runner: ^2.4.8
build_runner: ^2.4.13
coverage: ">=0.15.0 <2.0.0"
enhanced_enum_generator: ^0.2.4
file: ">=6.1.1 <8.0.0"