We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 567a013 + 606518d commit 7430660Copy full SHA for 7430660
lib/src/realtime_message.dart
@@ -1,5 +1,4 @@
1
import 'dart:convert';
2
-import 'package:collection/collection.dart';
3
import 'package:flutter/foundation.dart';
4
5
class RealtimeMessage {
@@ -59,12 +58,11 @@ class RealtimeMessage {
59
58
@override
60
bool operator ==(Object other) {
61
if (identical(this, other)) return true;
62
- final collectionEquals = const DeepCollectionEquality().equals;
63
64
return other is RealtimeMessage &&
65
other.event == event &&
66
- collectionEquals(other.payload, payload) &&
67
- collectionEquals(other.channels, channels) &&
+ mapEquals(other.payload, payload) &&
+ listEquals(other.channels, channels) &&
68
other.timestamp == timestamp;
69
}
70
0 commit comments