saveState function
Saves state for current action.
The state can only be retrieved by this action's post job execution.
Implementation
void saveState({
required String name,
required Object value,
}) {
issueCommand(
'save-state',
{'name': name},
value is String ? value : jsonEncode(value),
);
}