copyWith method

GeneratorData copyWith({
  1. String? className,
  2. AnnotationTypes? annotationType,
  3. List<String>? imports,
  4. List<Variable>? variablesList,
  5. bool? isAbstract,
  6. bool? isFreezed,
  7. bool? isListIncluded,
  8. bool? extended,
})

Implementation

GeneratorData copyWith({
  String? className,
  AnnotationTypes? annotationType,
  List<String>? imports,
  List<Variable>? variablesList,
  bool? isAbstract,
  bool? isFreezed,
  bool? isListIncluded,
  bool? extended,
}) =>
    GeneratorData(
      className: className ?? this.className,
      annotationType: annotationType ?? this.annotationType,
      imports: imports ?? this.imports,
      variablesList: variablesList ?? this.variablesList,
      isAbstract: isAbstract ?? this.isAbstract,
      isFreezed: isFreezed ?? this.isFreezed,
      isListIncluded: isListIncluded ?? this.isListIncluded,
      extended: extended ?? this.extended,
    );