getTemplate method

TreeElement? getTemplate(
  1. TreeReference ref
)

The repeat template (or attribute) at ref, if any.

Implementation

TreeElement? getTemplate(TreeReference ref) {
  final node = getTemplatePath(ref);
  return node != null && (node.isRepeatable || node.isAttribute)
      ? node
      : null;
}