ZenithObserver class abstract

An observer that receives lifecycle events from the Zenith framework.

Register a global observer via Zenith.observer to monitor node creation, mutations, disposal, and container lifecycle events. Useful for debugging, analytics, or logging.

Zenith.observer = ZenithLogObserver(); // logs all events in debug mode
Implementers

Constructors

ZenithObserver()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onContainerCreated(ZenithContainer container) → void
Called when a ZenithContainer is created.
onContainerDisposed(ZenithContainer container) → void
Called when a ZenithContainer is disposed.
onNodeCreated(ZenithContainer container, Object key, ZenithNode node) → void
Called when a new ZenithNode is created in container with key.
onNodeDisposed(ZenithNode node) → void
Called when a ZenithNode is disposed.
onNodeMutated(ZenithNode node, dynamic oldValue, dynamic newValue) → void
Called when a ZenithNode's value is updated.
toString() → String
A string representation of this object.
inherited

Operators

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