FragmentDefinition class Null safety

Fragments are the primary unit of composition in GraphQL.

Fragments allow for the reuse of common repeated Selections of fields, reducing duplicated text in the document.

InlineFragments can be used directly within a Selection to condition upon a TypeCondition when querying against an InterfaceTypeDefinition or UnionTypeDefinition.

Inheritance
Annotations

Constructors

FragmentDefinition(FragmentDefinitionNode astNode, [GetExecutableType? getType])
const

Properties

astNode FragmentDefinitionNode
final
directives List<Directive>
read-only
getType GetExecutableType
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
name String?
read-only, override
onType TypeDefinition?
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectionSet SelectionSet
read-only

Methods

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

Operators

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