Skip to content
This repository has been archived by the owner on Jan 18, 2018. It is now read-only.

🚫 (This project is no longer maintained.) Implements the Mediator pattern in a simple and effective way to make your projects truly extensible.

License

Notifications You must be signed in to change notification settings

LitGroupArchive/mediator.dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mediator

🚫 (This project is no longer maintained.)

Component implements the Mediator pattern in a simple and effective way to make your projects extensible.

(Inspired by Symfony Event Dispatcher)

Pub version License Coverage Status

import 'package:mediator/mediator.dart';

main() async {
  var dispatcher = new EventDispatcher();
  
  dispatcher.addListener('event-name', (String eventName, Event event) async {
  	// ...
  });
  
  var event = await dispatcher.dispatch('event-name');
  
  if (event.isPropagationStopped) {
    // ...
  }
}

About

🚫 (This project is no longer maintained.) Implements the Mediator pattern in a simple and effective way to make your projects truly extensible.

Resources

License

Stars

Watchers

Forks

Packages

No packages published