BCellGridEventManager class

A single broadcast stream of every BCellGridEvent the grid emits — the one-place event bus the per-callback API (onChanged/onSelected/… ) does not offer. Mirrors pluto_grid's PlutoGridEventManager calling shape (addEvent / listener / dispose), but is backed by the Dart stdlib StreamController.broadcast() rather than rxdart's PublishSubject — no new dependency.

Access it via stateManager.eventManager (created lazily; the manager disposes it). The existing construction-time callbacks still fire — the bus is additive.

final sub = stateManager.eventManager.listener((event) {
  if (event is BCellGridOnChangedEvent) print('changed ${event.value}');
});
// ...later
sub.cancel();

ponytail: a plain broadcast stream, not pluto's rxdart PublishSubject with debounce/throttle transformers — BCell emits a handful of discrete user events, not a keyboard/scroll firehose. Add rxdart only if a consumer needs stream operators the stdlib lacks.

Constructors

BCellGridEventManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEvent(BCellGridEvent event) → void
Emit event to every current subscriber. No-op after dispose.
dispose() → void
Close the stream and release listeners. Called by the state manager's dispose; safe to call more than once.
listener(void onData(BCellGridEvent event)) StreamSubscription<BCellGridEvent>
Subscribe onData to every event; returns the subscription so the caller can cancel() it. Mirrors pluto_grid's listener.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited