The controller responsible for processing the logic, the connection of widgets and the date of the layer.
- Implemented types
- Mixed-in types
- Implementers
Constructors
- Controller.new()
- The controller responsible for processing the logic, the connection of widgets and the date of the layer.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isDisposed → bool
-
Whether the controller is permanently disposed
no setter
- isProcessing → bool
-
Whether the controller is currently handling a requests
no setterinherited
- name → String
-
The name of the controller.
By default, it is the runtime type of the controller.
Override this property to provide a custom name.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subscribers → int
-
The number of subscribers to the controller
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object notifies its listeners.
override
-
dispose(
) → void - Discards any resources used by the object.
-
handle(
Future< void> handler(), {String? name, Map<String, Object?> ? meta}) → Future<void> - Handles a given operation with error handling and completion tracking.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
override
-
onError(
Object error, StackTrace stackTrace) → void - Error handling callback
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- context → HandlerContext?
-
Get the handler's context from the current zone.
no setter
- observer ↔ IControllerObserver?
-
Controller observer
getter/setter pair
Static Methods
-
merge(
Iterable< Listenable?> listenables) → Listenable - Return a Listenable that triggers when any of the given Listenables themselves trigger.