parseElement method

EBMLParserElement parseElement(
  1. String id,
  2. List<String> meta,
  3. dynamic data
)

Implementation

EBMLParserElement parseElement(String id, List<String> meta, dynamic data) {
  final element = EBMLParserElement(data is int ? [data] : data);
  element.id = id;
  element.name = meta[0];
  element.type = meta[1];
  if (element.type == 'm') {
    element.parseElements();
  } else {
    element.value = element.type == 'u' ? data : data;
  }
  return element;
}