fromInt static method

ShowCompletionState? fromInt(
  1. int value
)

Implementation

static ShowCompletionState? fromInt(int value) {
  for (var position in ShowCompletionState.values) {
    if (position.value == value) {
      return position;
    }
  }
  throw Exception('Invalid show completion state: $value');
}