event_bus_plus 0.6.2 copy "event_bus_plus: ^0.6.2" to clipboard
event_bus_plus: ^0.6.2 copied to clipboard

Event Bus for Dart.

example/lib/main.dart

import 'package:event_bus_plus/event_bus_plus.dart';
import 'package:flutter/material.dart';

import 'app.dart';

// Initialize the Service Bus
IEventBus eventBus = EventBus();

void main() {
  eventBus.on().listen((event) {
    print('${DateTime.now()} Event: $event');
  });

  runApp(const MyApp());
}
37
likes
140
points
7.81k
downloads

Publisher

verified publisherdevcraft.ninja

Weekly Downloads

Event Bus for Dart.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

clock, equatable, logger, rxdart

More

Packages that depend on event_bus_plus