copyWith method

SquintGeneratorOptions copyWith({
  1. bool? includeJsonAnnotations,
  2. bool? alwaysAddJsonValue,
  3. bool? blankLineBetweenFields,
  4. bool? generateChildClasses,
  5. bool? includeCustomTypeImports,
})

Copy the standardSquintGeneratorOptions with custom overrides.

{@category generator}

Implementation

SquintGeneratorOptions copyWith({
  bool? includeJsonAnnotations,
  bool? alwaysAddJsonValue,
  bool? blankLineBetweenFields,
  bool? generateChildClasses,
  bool? includeCustomTypeImports,
}) =>
    SquintGeneratorOptions(
      includeJsonAnnotations: includeJsonAnnotations ??
          standardSquintGeneratorOptions.includeJsonAnnotations,
      alwaysAddJsonValue: alwaysAddJsonValue ??
          standardSquintGeneratorOptions.alwaysAddJsonValue,
      blankLineBetweenFields: blankLineBetweenFields ??
          standardSquintGeneratorOptions.blankLineBetweenFields,
      generateChildClasses: generateChildClasses ??
          standardSquintGeneratorOptions.generateChildClasses,
      includeCustomTypeImports: includeCustomTypeImports ??
          standardSquintGeneratorOptions.includeCustomTypeImports,
    );