updateAttributes method

  1. @mustBeOverridden
Future<void> updateAttributes(
  1. String controllerId,
  2. Map<String, dynamic> json
)

Updates the attributes (properties) of the UI element controller identified by controllerId.

The json parameter is a Map<String, dynamic> containing key-value pairs representing the attributes to update on the specified controller. Implementations should deserialize or assign these values as appropriate for the UI element's state, triggering any necessary UI updates, re-rendering, or side effects.

  • If the controller with controllerId does not exist, this method may throw, be a no-op, or handle the situation gracefully depending on implementation.
  • Values in json are expected to match the schema or interface supported by the associated UIElementController.

Throws MissingCapabilityMethodImplementation if not overridden.

Implementation

@mustBeOverridden
Future<void> updateAttributes(
  String controllerId,
  Map<String, dynamic> json,
) =>
    throw const MissingCapabilityMethodImplementation(
      "updateAttributes",
      "UIControllerCapabilityDelegate",
    );