getFragmentMap function

Map<String, FragmentDefinitionNode> getFragmentMap(
  1. DocumentNode document
)

Implementation

Map<String, FragmentDefinitionNode> getFragmentMap(DocumentNode document) => {
      for (var fragmentDefinition
          in document.definitions.whereType<FragmentDefinitionNode>())
        fragmentDefinition.name.value: fragmentDefinition
    };