ReloadController class final

Controller for development-time subtree reloads.

This is a lightweight bridge for file watchers, editor tooling, or manual key bindings. Pair it with ReloadHost to rebuild a subtree in place or fully restart it.

Constructors

ReloadController()

Properties

hashCode int
The hash code for this object.
no setterinherited
revision int
Current revision number.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<ReloadSignal>
Stream of reload signals.
no setter

Methods

addListener(void listener(ReloadSignal signal)) → void
Adds a synchronous listener for reload events.
dispose() Future<void>
Closes the controller stream.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reload() → void
Rebuilds the subtree while preserving compatible state.
removeListener(void listener(ReloadSignal signal)) → void
Removes a previously added listener.
restart() → void
Restarts the subtree from scratch.
toString() String
A string representation of this object.
inherited

Operators

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