toFlutterTextTrackMode function

TextTrackMode toFlutterTextTrackMode(
  1. String mode
)

Implementation

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