copyWith method

ServerParam copyWith({
  1. bool? isNamed,
  2. bool? isRequired,
  3. AnnotationArgument? argument,
})

Implementation

ServerParam copyWith({
  bool? isNamed,
  bool? isRequired,
  AnnotationArgument? argument,
}) {
  return ServerParam._(
    name: name,
    type: type,
    isRequired: isRequired ?? this.isRequired,
    isNamed: isNamed ?? this.isNamed,
    defaultValue: defaultValue,
    hasDefaultValue: hasDefaultValue,
    importPath: importPath,
    annotations: annotations,
    argument: argument ?? this.argument,
  );
}