UIControllerCapabilityDelegate mixin

Mixin that provides an interface for managing and interacting with UI element controllers in the Duit driver.

Classes that mix in UIControllerCapabilityDelegate are expected to implement logic for tracking, attaching, detaching, and updating UI controllers (typically wrapping widgets, inputs, or other interactive elements).

By default, all methods throw MissingCapabilityMethodImplementation if not overridden, enforcing that concrete platform or application drivers provide required behaviors.

Typical responsibilities include:

  • Mapping UI controller IDs to their active controller instances
  • Attaching/detaching controllers dynamically as UI is built or disposed
  • Applying state and attribute updates received from the server or driver logic
  • Exposing helpers to query or enumerate attached controllers
Mixin applications

Properties

controllersCount int
Returns the number of currently attached UIElementControllers managed by this delegate.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attachController(String id, UIElementController controller) → void
Attaches a UI element controller to the driver.
detachController(String id) → void
Detaches the UI element controller associated with the given id.
getController(String id) UIElementController?
Returns the UIElementController associated with the given id, or null if no such controller is currently attached to the driver.
linkDriver(UIDriver driver) → void
Links a UIDriver instance to this holder.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
releaseResources() → void
Called to clean up any external resources, subscriptions, or handlers typically when a delegate is being disposed of or detached. Implementations should ensure all open streams or event sources are closed.
toString() String
A string representation of this object.
inherited
updateAttributes(String controllerId, Map<String, dynamic> json) Future<void>
Updates the attributes (properties) of the UI element controller identified by controllerId.

Operators

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