GraphQLEntityEmitter class
Emits Dart entity and enum files from GraphQL schema specifications.
Constructors
- GraphQLEntityEmitter({required String outputDir, bool useZorphy = true, bool dryRun = false, bool force = false, bool verbose = false, SpecLibrary? specLibrary})
Properties
Methods
-
generateEntity(
EntitySpec spec) → Future< String?> -
Generates a Dart entity file from the given
spec. -
generateEnum(
EnumSpec spec) → Future< String?> -
Generates a Dart enum file from the given
spec. -
generateOperation(
OperationSpec spec, {String? domain}) → Future< String?> - Generates a GraphQL operation file (query or mutation).
-
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