fromMap static method

TextTrackType fromMap(
  1. String value
)

Creates a text track type from a map value.

Implementation

static TextTrackType fromMap(String value) {
  return TextTrackType.values.firstWhere(
    (element) => element.name.toUpperCase() == value.toUpperCase(),
    orElse: () => TextTrackType.unknown,
  );
}