updateAttributes method
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
controllerIddoes not exist, this method may throw, be a no-op, or handle the situation gracefully depending on implementation. - Values in
jsonare 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",
);