NamedType class

An unqualified Named Type Reference.

GraphQL describes the types of data expected by query variables. Input types may be lists of another input type, or a non‐null variant of any other input type.

Inheritance
Annotations
  • @immutable

Constructors

NamedType(NamedTypeNode astNode, [ResolveType? getType])
const

Properties

astNode NamedTypeNode
final
baseTypeName String
Extracts the innermost NamedType's name
no setteroverride
getType ResolveType
Resolve the given name into a TypeDefinition, usually defined within the given context such as a GraphQLSchema.
final
hashCode int
The hash code for this object.
no setterinherited
hasResolver bool
Whether it is safe to resolve the referenced type via type
no setter
isNonNull bool
no setterinherited
name String
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type TypeDefinition?
Resolve the referenced type with getType.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object o) bool
The equality operator.
inherited

Static Methods

nameFromNode(NamedTypeNode astNode) String