Rx<T> class abstract

An abstract base class for implementing reactive objects.

The Rx class provides the foundation for creating reactive objects in the Super framework. It manages a list of listeners and notifies them when the object undergoes changes. Subclasses of Rx can override the dispose method to release any resources or perform cleanup when the reactive object is no longer needed.

Not Intended For Use Outside The Super Library.

Constructors

Rx()
Rx Constructor

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Checks if the reactive object has registered listeners.
no setter
mounted bool
Verify whether dispose was called or not.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ↔ T
The current state of the reactive object.
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Adds a listener to the reactive object.
dispose() → void
Disposes the reactive object and releases associated resources.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(VoidCallback listener) → void
Removes a listener from the reactive object.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

debugAssertNotDisposed(Rx rx) bool
Used by subclasses to assert that the Rx has not yet been disposed.