toFlutterTextTrackReadyState function

TextTrackReadyState toFlutterTextTrackReadyState(
  1. int textTrackReadyState
)

Implementation

PlatformInterface.TextTrackReadyState toFlutterTextTrackReadyState(int textTrackReadyState) {
  switch (textTrackReadyState) {
    case 1:
      return PlatformInterface.TextTrackReadyState.loading;
    case 2:
      return PlatformInterface.TextTrackReadyState.loaded;
    case 3:
      return PlatformInterface.TextTrackReadyState.error;
    case 0:
    default:
      return PlatformInterface.TextTrackReadyState.none;
  }
}