fromValue static method

ExecutionMode fromValue(
  1. int value
)

Implementation

static ExecutionMode fromValue(int value) => switch (value) {
  0 => ORT_SEQUENTIAL,
  1 => ORT_PARALLEL,
  _ => throw ArgumentError('Unknown value for ExecutionMode: $value'),
};