withDescription method

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

Creates a copy of this spec with the given description.

Implementation

@override
ArraySpec withDescription(String description) => ArraySpec(
      items: items,
      minItems: minItems,
      maxItems: maxItems,
      uniqueItems: uniqueItems,
      defaultValue: defaultValue,
      description: description,
      nullable: nullable,
      examples: examples,
      isDeprecated: isDeprecated,
    );