getByName static method

TagType getByName(
  1. String tagType
)

Returns TagType by given tagType name.

Implementation

static TagType getByName(String tagType) =>
  TagType.values.firstWhere(
    (element) => element.name == tagType,
    orElse: () => TagType.unknown,
  );