copyWith method
Creates a copy with the given modifications.
Implementation
RefSpec copyWith({
String? typeName,
bool? nullable,
String? description,
List<Object>? examples,
bool? isDeprecated,
}) =>
RefSpec(
typeName: typeName ?? this.typeName,
nullable: nullable ?? this.nullable,
description: description ?? this.description,
examples: examples ?? this.examples,
isDeprecated: isDeprecated ?? this.isDeprecated,
);