TypeCondition class Null safety

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

Constructors

TypeCondition(TypeConditionNode? astNode)
const

Properties

astNode TypeConditionNode?
final
hashCode int
The hash code for this object. [...]
read-only, inherited
on NamedType
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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