diff --git a/packages/moxxmpp/lib/src/events.dart b/packages/moxxmpp/lib/src/events.dart index 7b0e6c7..1e922a7 100644 --- a/packages/moxxmpp/lib/src/events.dart +++ b/packages/moxxmpp/lib/src/events.dart @@ -92,6 +92,9 @@ class MessageEvent extends XmppEvent { /// Data added by other handlers. final TypedMap extensions; + + /// Shorthand for extensions.get(). + T? get() => extensions.get(); } /// Triggered when a client responds to our delivery receipt request