GraphQLEntityEmitter class
Emits Dart entity and enum files from GraphQL schema specifications.
Constructors
- GraphQLEntityEmitter({required String outputDir, bool dryRun = false, bool force = false, bool verbose = false, SpecLibrary? specLibrary})
Properties
- dryRun → bool
-
final
- force → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- outputDir → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- specLibrary → SpecLibrary
-
final
- verbose → bool
-
final
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