fromValue static method

TaskGroupSchedulingPolicy fromValue(
  1. String value
)

Implementation

static TaskGroupSchedulingPolicy fromValue(String value) {
  for (final item in TaskGroupSchedulingPolicy.values) {
    if (item.wireValue == value) {
      return item;
    }
  }
  throw ArgumentError('Unknown TaskGroupSchedulingPolicy value: $value');
}