Skip to content
pubscout

eventify

1.0.1, released 4 years ago by eventify.biz

A cancellable event emitter supporting context-based event-driven programming in Dart.

WASM-ready
$ flutter pub add eventify
Source repository

What it does

Provides an event emitter mechanism to register for events, receive notifications, and access sender and context information. Supports cancellable event subscriptions.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a lightweight event emitter or pub-sub pattern in pure Dart or Flutter
  • You need context and sender information passed along with event callbacks
  • You need the ability to cancel event subscriptions

Skip it when

  • You prefer reactive stream-based solutions like Dart's built-in StreamController
  • You require complex state management solutions like BLoC or Provider

Strengths

  • Supports context and sender information in event callbacks
  • Cancellable event subscriptions
  • Optimized performance using Sets for handlers

Weaknesses

  • Lacks advanced filtering or wildcard matching natively documented
  • No built-in streams support explicitly detailed beyond callbacks

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
EventEmitter emitter = new EventEmitter();
Listener listener = emitter.on("add", this , cb);
emitter.emit("add","keyboard",10);

Alternatives

Packages that do the same job and could replace eventify.

Works with

Packages commonly used together with eventify: ones it builds on, ones built on it, and its own family.