withDescription method

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

Creates a copy of this spec with the given description.

Implementation

@override
NumberSpec withDescription(String description) => NumberSpec(
      isInteger: isInteger,
      minimum: minimum,
      maximum: maximum,
      exclusiveMinimum: exclusiveMinimum,
      exclusiveMaximum: exclusiveMaximum,
      multipleOf: multipleOf,
      defaultValue: defaultValue,
      description: description,
      nullable: nullable,
      examples: examples,
      isDeprecated: isDeprecated,
    );