fromValue static method

MpRunningMode fromValue(
  1. int value
)

Implementation

static MpRunningMode fromValue(int value) => switch (value) {
  1 => MP_RUNNING_MODE_IMAGE,
  2 => MP_RUNNING_MODE_VIDEO,
  3 => MP_RUNNING_MODE_LIVE_STREAM,
  _ => throw ArgumentError('Unknown value for MpRunningMode: $value'),
};