FeatureNode class
A reactive ZenithNode holding the boolean status of a ZenithFeature.
- Inheritance
-
- Object
- ZenithNode<
bool> - FeatureNode
Constructors
- FeatureNode(ZenithFeature feature, bool initialValue)
-
Creates a FeatureNode with initial
initialValue.
Properties
- debugSubscriberCount → int
-
The current number of subscribers (including potentially dead weak
references that have not yet been pruned).
no setterinherited
- feature → ZenithFeature
-
The feature descriptor associated with this node.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
Whether this node has been disposed.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ bool
-
The current value held by this node.
getter/setter pairinherited
Methods
-
dispose(
{bool purgeZeroize = false}) → void -
Permanently disposes this node, clearing all subscribers.
inherited
-
invalidate(
) → void -
Forces a notification pass without changing the value.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifySubscribers(
) → void -
Notifies all live subscribers that this node has changed.
inherited
-
set(
bool newValue) → void -
Sets the value of this node and notifies all active subscribers.
inherited
-
subscribe(
ZenithSubscriber subscriber) → ZenithSubscription -
Adds
subscriberto this node's listener set.inherited -
toggle(
) → void - Toggles the boolean feature state.
-
toString(
) → String -
A string representation of this object.
inherited
-
trySet(
bool newValue) → bool -
Attempts to update the value of this node.
inherited
-
unsubscribe(
ZenithSubscriber subscriber) → void -
Removes
subscriberfrom this node's listener set.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited