copyWith method

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

Creates a copy with the given modifications.

Implementation

BoolSpec copyWith({
  bool? defaultValue,
  String? description,
  bool? nullable,
  List<Object>? examples,
  bool? isDeprecated,
}) =>
    BoolSpec(
      defaultValue: defaultValue ?? this.defaultValue,
      description: description ?? this.description,
      nullable: nullable ?? this.nullable,
      examples: examples ?? this.examples,
      isDeprecated: isDeprecated ?? this.isDeprecated,
    );