daftspaniel / minibus

Minimal synchronous event bus.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

minibus

A library for a minimal synchronous event bus.

Basic Usage

A simple usage example:

import 'package:minibus/minibus.dart';
String EVENT = "myevent";

main() {
  MiniBus bus1 = new MiniBus();
  bus1.subscribe(EVENT, (){print('Hello World!')});
  bus1.post(EVENT);
}

Features and bugs

Please file feature requests and bugs.

Run tests with:

  • pub run test

Check source code formatting:

  • dartfmt -n .

About

Minimal synchronous event bus.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 100.0%