NodesController class

Loads and holds the discoverable node list, with cache-backed instant paint and explicit loading/error states.

Constructors

NodesController(OmnyShellService _service, NodeCache _cache)
Creates a controller.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state Observable<AsyncState<List<NodeDescriptor>>>
Observable node-list state.
final

Methods

byId(String id) → NodeDescriptor?
The node with id from the current list, or null if not loaded/found.
load() Future<void>
Seeds from cache (shown as stale) then refreshes from the Hub. Safe to call on every navigation to the nodes screen.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh() Future<void>
Fetches the node list from the Hub, updating the cache on success and retaining prior data on failure.
reset() → void
Resets state and clears the cache (on sign-out).
toString() String
A string representation of this object.
inherited

Operators

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