defaultStepStatusLabel static method

String defaultStepStatusLabel(
  1. AgentStepStatus status
)

The default name of a step's status.

Implementation

static String defaultStepStatusLabel(AgentStepStatus status) =>
    switch (status) {
      AgentStepStatus.pending => 'Pending',
      AgentStepStatus.active => 'In progress',
      AgentStepStatus.complete => 'Done',
      AgentStepStatus.cancelled => 'Skipped',
    };