File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
templates/flutter/lib/src Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 11import 'dart:convert';
2- import 'package:collection/collection.dart';
32import 'package:flutter/foundation.dart';
43
54class 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
You can’t perform that action at this time.
0 commit comments