getByValue static method

StreamingState getByValue(
  1. num i
)

Implementation

static StreamingState getByValue(num i) {
  for (var value in StreamingState.values) {
    if (value.value == i) {
      return value;
    }
  }
  return undefined;
}