Skip to content

Commit 483f99a

Browse files
committed
refactor: add toString method to RealtimeCloseEvent
1 parent 04c9753 commit 483f99a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/realtime_client/lib/src/realtime_client.dart

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ class RealtimeCloseEvent {
4545
required this.code,
4646
required this.reason,
4747
});
48+
49+
@override
50+
String toString() {
51+
return 'RealtimeCloseEvent{code: $code, reason: $reason}';
52+
}
4853
}
4954

5055
class RealtimeClient {

0 commit comments

Comments
 (0)