fromIntValue static method
Converts an integer to a corresponding GiphyVideoViewPlaybackState enum value.
value
The integer value to be converted.
Returns the corresponding playback state for the given integer value.
Implementation
static GiphyVideoViewPlaybackState fromIntValue(int value) {
switch (value) {
case 0:
return GiphyVideoViewPlaybackState.unknown;
case 3:
return GiphyVideoViewPlaybackState.readyToPlay;
case 4:
return GiphyVideoViewPlaybackState.playing;
case 5:
return GiphyVideoViewPlaybackState.paused;
default:
return GiphyVideoViewPlaybackState.unknown;
}
}