NormalizationConfig class Null safety

Constructors

NormalizationConfig({required Map<String, dynamic>? read(String dataId), required Map<String, dynamic> variables, required Map<String, TypePolicy> typePolicies, required String referenceKey, required Map<String, FragmentDefinitionNode> fragmentMap, required DataIdResolver? dataIdFromObject, required bool addTypename, required bool allowPartialData, required Map<String, Set<String>> possibleTypes})

Properties

addTypename bool
Whether to add a __typename field to every selection set in the document.
final
allowPartialData bool
Whether to accept or return partial data.
final
dataIdFromObject DataIdResolver?
Resolves a data id String for a given object Map, or returns null if the Map should not be normalized.
final
fragmentMap Map<String, FragmentDefinitionNode>
Mapping of fragment names to their definitions for spread resolution.
final
hashCode int
The hash code for this object.
read-onlyinherited
possibleTypes Map<String, Set<String>>
A map from an interface/union to possible types.
final
read Map<String, dynamic>? Function(String dataId)
final
referenceKey String
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
typePolicies Map<String, TypePolicy>
Mapping of __typename to custom TypePolicy to use, if any.
final
variables Map<String, dynamic>
Fragment or operation variables that parameterize the document.
final

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 other) bool
The equality operator.
inherited