ElementChangeWatcher<U extends PheasantTemplate> class

A special extended class of ChangeWatcher used to control the state of not only the PheasantTemplate object, but the Element rendered by the file.

When a state change is caused by the parent, it could refresh the changes on the PheasantTemplate file, including the changes made on the Element and its children elements rendered by the object.

In order to store and reproduce these changes, the ElementChangeWatcher object has added functionality by the HtmlElementStateControl mixin to be able to control the state of children elements that will undergo these state changes.

Inheritance
Mixed-in types

Constructors

ElementChangeWatcher({required U initValue, State<U>? state})

Properties

currentState Future<State<U>>
no setterinherited
currentStateChange StateChange<U>?
The current state change that has occured on the watched variable and initialState, or null if there have been no recent changes.
getter/setter pairinherited
currentValue → U
The current value of the watched variable
no setterinherited
emittedStream Stream<U>
Stream for listening to variable value changes
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
initialState State<U>
The state of the watched variable
getter/setter pairinherited
initValue ↔ U
The initial value of the watched variable.
getter/setter pairinherited
receivedStream Stream<U>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
valueStream Stream<U>
Stream for listening to variable value changes
no setterinherited

Methods

applyState() → void
Function used in making a copy of the current state of an object to be implemented elsewhere in code.
inherited
dispose() → void
Dispose method to close the stream when no longer needed
inherited
emit() → void
Function used in emitting state changes
inherited
emitStream(Stream<U> stream) → void
Function used in emitting a stream of state changes
inherited
freeze() → void
Function used to freeze state.
inherited
initialiseReference(Element element) → void
Function used to initialise the element reference.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ping() → void
inherited
receive() → void
Function used in receiving state changes
inherited
receiveStream(Stream<U> stream) → void
Function used in emitting a stream of state changes
inherited
reflectChanges() → void
Function called after a state change made by the parent to reproduce the current state of the element.
inherited
reload() → void
Function used to refresh or reload state.
inherited
setReference(Element element) → void
Function used to set the current element reference, used to measure state.
inherited
toString() String
A string representation of this object.
inherited
unfreeze() → void
Function used to unfreeze state.
inherited
watchVariable(U variable) → void
Function used to watch the variable for changes.
inherited

Operators

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