getTagType static method

TagType getTagType(
  1. String type,
  2. String? version
)

Implementation

static TagType getTagType(String type, String? version) {
  if (type.toLowerCase() == 'id3') {
    switch (version!.substring(0, 1)) {
      case '1':
        return TagType.id3v1;
      case '2':
        return TagType.id3v2;
      default:
        return TagType.unknown;
    }
  }
  return TagType.unknown;
}