fromValue static method

TaskStatus fromValue(
  1. String value
)

Implementation

static TaskStatus fromValue(String value) => values
    .firstWhere((e) => e.value == value, orElse: () => TaskStatus._(value));