override toString() for events

This commit is contained in:
Hiroshi Horie
2022-01-11 00:40:20 +07:00
parent 0f41aed902
commit a6a4e18551
3 changed files with 94 additions and 10 deletions
+3
View File
@@ -232,4 +232,7 @@ abstract class Participant<T extends TrackPublication>
/// (Equality operator) [Participant] is considered equal when [sid]'s are equal.
@override
bool operator ==(Object other) => other is Participant && sid == other.sid;
@override
String toString() => '${runtimeType}(sid: ${sid}, identity: ${identity})';
}