Subgraph.fromStatements constructor

Subgraph.fromStatements({
  1. String? id,
  2. required List<Statement> statements,
})

Create a subgraph from a list of statements.

Implementation

factory Subgraph.fromStatements({
  String? id,
  required List<Statement> statements,
}) =>
    Subgraph(
      id,
      StmtList(statements),
    );