description property

String description

User friendly description.

Implementation

String get description {
  if (value == null) return 'Undefined';
  switch (value) {
    case 1:
      return 'Enqueued';
    case 2:
      return 'Running';
    case 3:
      return 'Completed';
    case 4:
      return 'Failed';
    case 5:
      return 'Cancelled';
    case 6:
      return 'Paused';
    default:
      return 'Undefined ($value)';
  }
}