AudioPlaybackStatus.fromValue constructor
AudioPlaybackStatus.fromValue(
- int value
Implementation
factory AudioPlaybackStatus.fromValue(int value) {
switch (value) {
case 0:
return AudioPlaybackStatus.undefined;
case 1:
return AudioPlaybackStatus.playing;
case 2:
return AudioPlaybackStatus.paused;
case 3:
return AudioPlaybackStatus.idle;
default:
throw UnknownEnumValueException(
"Unknown value for 'AudioPlaybackStatus'. The value was: '$value'",
);
}
}