NormalizationConfig class

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 bool allowDanglingReference, required Map<String, Set<String>> possibleTypes})
const

Properties

addTypename bool
Whether to add a __typename field to every selection set in the document.
final
allowDanglingReference bool
Whether to accept to build data with dangling references.
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.
no setterinherited
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.
no setterinherited
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 nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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