Skip to content

Commit 4be9665

Browse files
Merge pull request #247 from lohanidamodar/feat-fix-flutter
fix flutter deploy fail
2 parents 7a30fac + aa06886 commit 4be9665

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

templates/flutter/lib/src/realtime_message.dart.twig

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import 'dart:convert';
2-
import 'package:collection/collection.dart';
32
import 'package:flutter/foundation.dart';
43

54
class RealtimeMessage {
@@ -59,13 +58,12 @@ class RealtimeMessage {
5958
@override
6059
bool operator ==(Object other) {
6160
if (identical(this, other)) return true;
62-
final collectionEquals = const DeepCollectionEquality().equals;
63-
61+
6462
return other is RealtimeMessage &&
65-
other.event == event &&
66-
collectionEquals(other.payload, payload) &&
67-
collectionEquals(other.channels, channels) &&
68-
other.timestamp == timestamp;
63+
other.event == event &&
64+
mapEquals(other.payload, payload) &&
65+
listEquals(other.channels, channels) &&
66+
other.timestamp == timestamp;
6967
}
7068

7169
@override

0 commit comments

Comments
 (0)