getByName method

TypeDefinitionNode? getByName(
  1. String name
)

Gets type definition node by type name

Implementation

TypeDefinitionNode? getByName(String name) {
  final type = types[name];

  if (type != null) {
    return type;
  }

  return null;
}