copyWith method

RefSpec copyWith({
  1. String? typeName,
  2. bool? nullable,
  3. String? description,
  4. List<Object>? examples,
  5. bool? isDeprecated,
})

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