fromValue static method

ma_share_mode fromValue(
  1. int value
)

Implementation

static ma_share_mode fromValue(int value) => switch (value) {
  0 => ma_share_mode_shared,
  1 => ma_share_mode_exclusive,
  _ => throw ArgumentError('Unknown value for ma_share_mode: $value'),
};