scopeEnd property

int get scopeEnd

Implementation

int get scopeEnd {
  int result = end;

  int latestChild = children.isNotEmpty
      ? children
          .map((e) => e.scopeEnd)
          .reduce((value, element) => element > value ? element : value)
      : 0;

  if (latestChild > result) result = latestChild;

  return result + (tag != null ? tag!.endTagSize : 0);
}