event_dispatcher_builder 1.0.0 event_dispatcher_builder: ^1.0.0 copied to clipboard
A event dispatcher builder for dart. Easy to use and lightweight as a feather.
library event_dispatcher_builder_example;
import 'package:catalyst_builder/catalyst_builder.dart';
import 'package:event_dispatcher_builder/event_dispatcher_builder.dart';
import 'example.event_dispatcher_builder.g.dart';
export 'example.event_dispatcher_builder.g.dart';
export 'src/fake_handler.dart';
export 'src/test_event.dart';
@GenerateEventDispatcher()
@GenerateServiceProvider()
@ServiceMap(services: {
MyEventDispatcher: Service(
lifetime: ServiceLifetime.singleton,
exposeAs: EventDispatcher,
)
})
void main() {}