multiLineValue property

String? multiLineValue

Value of the element including concatenations or continuations

Implementation

String? get multiLineValue {
  var result = value ?? '';
  var lastCrlf = crlf;
  for (var element in children) {
    var tag = element.tag;
    if (tag == GEDCOM_TAG_CONCATENATION) {
      result += element.value!;
      lastCrlf = element.crlf;
    } else if (tag == GEDCOM_TAG_CONTINUED) {
      result += lastCrlf! + element.value!;
      lastCrlf = element.crlf;
    }
  }
  return result;
}