fromValue static method

ma_node_state fromValue(
  1. int value
)

Implementation

static ma_node_state fromValue(int value) => switch (value) {
      0 => ma_node_state_started,
      1 => ma_node_state_stopped,
      _ => throw ArgumentError('Unknown value for ma_node_state: $value'),
    };