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