Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions templates/flutter/lib/src/realtime_message.dart.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:convert';
import 'package:collection/collection.dart';
import 'package:flutter/foundation.dart';

class RealtimeMessage {
Expand Down Expand Up @@ -59,13 +58,12 @@ class RealtimeMessage {
@override
bool operator ==(Object other) {
if (identical(this, other)) return true;
final collectionEquals = const DeepCollectionEquality().equals;


return other is RealtimeMessage &&
other.event == event &&
collectionEquals(other.payload, payload) &&
collectionEquals(other.channels, channels) &&
other.timestamp == timestamp;
other.event == event &&
mapEquals(other.payload, payload) &&
listEquals(other.channels, channels) &&
other.timestamp == timestamp;
}

@override
Expand Down