copyWith method

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

Implementation

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