withDescription method

  1. @override
StringSpec withDescription(
  1. String description
)
override

Creates a copy of this spec with the given description.

Implementation

@override
StringSpec withDescription(String description) => StringSpec(
      format: format,
      pattern: pattern,
      minLength: minLength,
      maxLength: maxLength,
      defaultValue: defaultValue,
      description: description,
      nullable: nullable,
      examples: examples,
      isDeprecated: isDeprecated,
    );