meta<T> method

T? meta<T>()
inherited

Returns the metadata of type T that might have been set on this node, or null if none was found. Nodes can have arbitrary annotations on them set via setMeta and obtained via meta. This mechanism is used to, for instance, attach variable scopes to a subtree.

Implementation

T? meta<T>() {
  return _metadata[T] as T?;
}