parseMediaSources static method

List<String?> parseMediaSources(
  1. List<Element> elements
)

Implementation

static List<String?> parseMediaSources(List<dom.Element> elements) {
  return elements.where((element) => element.localName == 'source').map((element) {
    return element.attributes['src'];
  }).toList();
}