event_bus_plus 0.6.1 copy "event_bus_plus: ^0.6.1" to clipboard
event_bus_plus: ^0.6.1 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());
}