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