From 3ed437253bbb193d8885a8715ff9c3afffcfa66b Mon Sep 17 00:00:00 2001 From: Jason Dean Lessenich Date: Thu, 29 Feb 2024 01:16:24 +0100 Subject: [PATCH] Fixed Event firing --- lib/src/events/event_handler.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/events/event_handler.dart b/lib/src/events/event_handler.dart index 8ca1319..aa7add4 100644 --- a/lib/src/events/event_handler.dart +++ b/lib/src/events/event_handler.dart @@ -10,6 +10,6 @@ class RestrrEventHandler { } void fire(T event) { - eventMap[T.runtimeType]?.call(event); + eventMap[event.runtimeType]?.call(event); } }