copyWith method
Creates a copy with the given modifications.
Implementation
StringSpec copyWith({
StringFormat? format,
String? pattern,
int? minLength,
int? maxLength,
String? defaultValue,
String? description,
bool? nullable,
List<Object>? examples,
bool? isDeprecated,
}) =>
StringSpec(
format: format ?? this.format,
pattern: pattern ?? this.pattern,
minLength: minLength ?? this.minLength,
maxLength: maxLength ?? this.maxLength,
defaultValue: defaultValue ?? this.defaultValue,
description: description ?? this.description,
nullable: nullable ?? this.nullable,
examples: examples ?? this.examples,
isDeprecated: isDeprecated ?? this.isDeprecated,
);