SchemaSource class

Where the schema comes from: the schema section of graphql_gen.yaml.

Constructors

SchemaSource({required String file, String? url, bool introspection = false, Map<String, String> headers = const {}})

Properties

file → String
Local SDL file read by sync and written by fetch.
final
hashCode → int
The hash code for this object.
no setterinherited
headers → Map<String, String>
Request headers; ${NAME} is replaced with the environment variable.
final
introspection → bool
When true, fetch POSTs an introspection query to url and converts the result to SDL. Otherwise url must return SDL text.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String?
Endpoint fetch downloads from.
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