saveState function

void saveState({
  1. required String name,
  2. required Object value,
})

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),
  );
}