convertStringToVideoType method Null safety

VideoType? convertStringToVideoType(
  1. String type
)

Converts a string video type to the corresponding VideoType enum.

Returns null if it is does not exist, otherwise returns VideoType

Implementation

static VideoType? convertStringToVideoType(String type) =>
    EnumToString.fromString(VideoType.values, type);