toFlutterTextTrackMode function
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;
}
}