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