WidgetBuildFunction typedef
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.
Implementation
typedef WidgetBuildFunction = Widget Function(BuildContext context, Map<String, dynamic> params, SendCommandCallback sendCommand);