createTag static method

AbstractTag? createTag(
  1. String name,
  2. List<ASTNode> content,
  3. List<Filter> filters
)

Creates a tag instance with the given name, content, and filters.

Returns null if the tag is not registered.

Implementation

static AbstractTag? createTag(
    String name, List<ASTNode> content, List<Filter> filters) {
  final creator = _tags[name];
  if (creator != null) {
    return creator(content, filters);
  }
  return null;
}