parseSetTags method

void parseSetTags(
  1. List tags
)

Implementation

void parseSetTags(List tags) {
  for (var tag in tags) {
    if (tag is! List<dynamic>) continue;
    final length = tag.length;
    if (length <= 1) continue;
    final tagName = tag[0];
    final value = tag[1];
    if (tagName == "d") {
      name = value;
      continue;
    }
    if (tagName == "title") {
      title = value;
      continue;
    }
    if (tagName == "description") {
      description = value;
      continue;
    }
    if (tagName == "image") {
      image = value;
      continue;
    }
  }
}