FleuryAppController class

Root controller installed by FleuryApp.

Inheritance

Constructors

FleuryAppController({required String title, required CommandRegistry commands, required StatusController status, List<Object> extensions = const <Object>[]})

Properties

commands → CommandRegistry
final
dataSources → List<Object>
Data/read-model objects contributed by registered FleuryAppExtensions.
no setter
extensions → List<Object>
App-level extension objects registered by the host application.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether at least one listener is registered.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → StatusController
final
title ↔ String
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Registers listener to be called when this object changes.
inherited
dataSource<T extends Object>() → T
Returns the first contributed app data source assignable to T.
dispose() → void
Marks this notifier as disposed and drops its listeners. Nulls the slots in place (rather than replacing the backing list) so a dispose called from within a listener leaves any in-progress notify walk reading valid, now-empty slots. After disposal, addListener and notify throw; removeListener remains safe for cleanup.
override
extension<T extends Object>() → T
Returns the first registered app extension assignable to T.
listen(VoidCallback listener) → VoidCallback
Registers listener and returns an idempotent cancellation function.
inherited
maybeDataSource<T extends Object>() → T?
Returns the first contributed app data source assignable to T, if present.
maybeExtension<T extends Object>() → T?
Returns the first registered app extension assignable to T, if present.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
Publishes a change to every listener registered when the pass began.
inherited
removeListener(VoidCallback listener) → void
Removes a previously-registered listener.
inherited
toString() → String
A string representation of this object.
inherited
updateExtensions(List<Object> extensions) → void

Operators

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