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