fromValue static method

ma_dither_mode fromValue(
  1. int value
)

Implementation

static ma_dither_mode fromValue(int value) => switch (value) {
      0 => ma_dither_mode_none,
      1 => ma_dither_mode_rectangle,
      2 => ma_dither_mode_triangle,
      _ => throw ArgumentError('Unknown value for ma_dither_mode: $value'),
    };