toTextTrackMode function

String toTextTrackMode(
  1. TextTrackMode flutterTextTrackmode
)

Implementation

String toTextTrackMode(PlatformInterface.TextTrackMode flutterTextTrackmode) {
  switch (flutterTextTrackmode) {
    case PlatformInterface.TextTrackMode.showing:
      return "showing";
    case PlatformInterface.TextTrackMode.hidden:
      return "hidden";
    case PlatformInterface.TextTrackMode.disabled:
    default:
      return "disabled";
  }
}