TypeCondition class

FragmentDefinitions must specify the type they apply to through type conditions

Fragments cannot be specified on any input value (ScalarTypeDefinition, EnumTypeDefinition, or InputObjectTypeDefinition).

Fragments can be specified on ObjectTypeDefinitions, InterfaceTypeDefinitions, and UnionTypeDefinitions.

Selections within fragments only return values when the concrete type of the object it is operating on matches the type of the fragment.

Inheritance
Annotations
  • @immutable

Constructors

TypeCondition(TypeConditionNode? astNode)
const

Properties

astNode TypeConditionNode?
final
hashCode int
The hash code for this object.
no setterinherited
on NamedType
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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