From 3c0b41dff8564a4edd4b2411182009acfa8de5c7 Mon Sep 17 00:00:00 2001 From: Luis Burgos Date: Tue, 2 Aug 2022 22:07:13 -0500 Subject: [PATCH] fix: allow generic types on event handlers --- lib/kinds/app_events.dart | 5 +++-- lib/kinds/commands.dart | 4 ++-- lib/kinds/ui_events.dart | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/kinds/app_events.dart b/lib/kinds/app_events.dart index 8314a65..2b28e39 100644 --- a/lib/kinds/app_events.dart +++ b/lib/kinds/app_events.dart @@ -3,6 +3,7 @@ import '../infra/typed_event_handler.dart'; abstract class AppEvent {} -abstract class AppEventHandler extends TypedEventHandler {} +abstract class AppEventHandler + extends TypedEventHandler {} -class AppEventBus extends TypedEventBus {} +class AppEventBus extends TypedEventBus {} diff --git a/lib/kinds/commands.dart b/lib/kinds/commands.dart index 0671b9c..a156b65 100644 --- a/lib/kinds/commands.dart +++ b/lib/kinds/commands.dart @@ -3,6 +3,6 @@ import '../infra/typed_event_handler.dart'; abstract class Command {} -abstract class CommandHandler extends TypedEventHandler {} +abstract class CommandHandler extends TypedEventHandler {} -class CommandEventBus extends TypedEventBus {} +class CommandEventBus extends TypedEventBus {} diff --git a/lib/kinds/ui_events.dart b/lib/kinds/ui_events.dart index ff48956..170d632 100644 --- a/lib/kinds/ui_events.dart +++ b/lib/kinds/ui_events.dart @@ -3,7 +3,7 @@ import '../infra/typed_event_handler.dart'; abstract class UiEvent {} -abstract class UIEventHandler extends TypedEventHandler {} +abstract class UiEventHandler extends TypedEventHandler {} class UiEventBus extends TypedEventBus {}