KletsoLocalAction class final

Runs a host-registered callback by name; never leaves the device.

Inheritance

Constructors

KletsoLocalAction({required String id, required String name, JsonMap args = const <String, Object?>{}, String? label})
Creates a local action.
const

Properties

args → JsonMap
Arguments handed to the callback.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Unique within the component.
finalinherited
isLocal → bool
true for kinds that never leave the device.
no setterinherited
kind → String
The wire discriminator.
no setteroverride
label → String?
Optional label the runtime echoes into the transcript for agent actions (e.g. the button text that was pressed).
finalinherited
name → String
Name of the callback registered with registerAction.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → JsonMap
Wire form, including id, kind and label when present.
override
toString() → String
A string representation of this object.
inherited

Operators

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