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); } }