ExecutableDocument constructor Null safety

ExecutableDocument(
  1. DocumentNode astNode,
  2. [ResolveType? getSchemaType,
  3. Iterable<DocumentNode> imports = const []]
)

Implementation

ExecutableDocument(
  this.astNode, [
  this.getSchemaType,
  Iterable<DocumentNode> imports = const [],
])  : _fragmentNodeMap = _collectImportedFragmentNodes([astNode, ...imports]),
      super();