copyWith method
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,
);
}