eventify
1.0.1, released 4 years ago by eventify.biz
A cancellable event emitter supporting context-based event-driven programming in Dart.
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.
- snowplow_tracker
Flutter package for sending Snowplow analytics events on Android, iOS, and Web.
78Compare - isolated_object
Wraps an object in a dedicated isolate and forwards method calls to it
79Compare - events_emitter
An intuitive event-based system inspired by NodeJS's Event Emitter with type safety.
55Compare - structured_async
Structured asynchronous programming and cancellable futures for Dart.
39Compare
Works with
Packages commonly used together with eventify: ones it builds on, ones built on it, and its own family.
- razorpay_flutterBuilt on eventifyFlutter plugin for the Razorpay payment gateway SDK.
- razorpay_flutter_customuiBuilt on eventifyFlutter plugin for the Razorpay Custom UI SDK on Android and iOS
- razorpay_webBuilt on eventifyFlutter plugin for integrating the Razorpay payment gateway across multiple platforms.