util/typedefs library

Typedefs

SendCommandCallback = void Function(String commandType, Map<String, dynamic> args)
Define the interface for sending commands from embedded widgets to the backend/controller. This typedef represents a function that takes a command type string and a map of arguments, and returns void (or Future
WidgetBuildFunction = Widget Function(BuildContext context, Map<String, dynamic> params, SendCommandCallback sendCommand)
Define the typedef for the function that builds an embedded widget. It receives the BuildContext, parameters from the JSON block, and the SendCommandCallback.