copyWith method

MapSpec copyWith({
  1. TypeSpec? keyType,
  2. TypeSpec? valueType,
  3. String? description,
  4. bool? nullable,
  5. List<Object>? examples,
  6. bool? isDeprecated,
})

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,
    );