copyWith method
Creates a copy of this GeneratorOptions but with the given fields replaced with the new values.
Implementation
GeneratorOptions copyWith({
bool? generateHelpers,
bool? generateQueries,
List<ScalarMap?>? scalarMapping,
String? fragmentsGlob,
List<SchemaMap>? schemaMapping,
List<String>? ignoreForFile,
bool? convertEnumToString,
}) {
return GeneratorOptions(
generateHelpers: generateHelpers ?? this.generateHelpers,
generateQueries: generateQueries ?? this.generateQueries,
scalarMapping: scalarMapping ?? this.scalarMapping,
fragmentsGlob: fragmentsGlob ?? this.fragmentsGlob,
schemaMapping: schemaMapping ?? this.schemaMapping,
ignoreForFile: ignoreForFile ?? this.ignoreForFile,
convertEnumToString: convertEnumToString ?? this.convertEnumToString,
);
}