From e234c812ff255d62627ede798b04fa6a75dd7933 Mon Sep 17 00:00:00 2001 From: "Alexander \"PapaTutuWawa" Date: Wed, 7 Jun 2023 21:11:11 +0200 Subject: [PATCH] feat(core): Add a shorthand for MessageEvent.extensions.get --- packages/moxxmpp/lib/src/events.dart | 3 +++ 1 file changed, 3 insertions(+) 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