asNullable method
Creates a copy of this spec with nullable set to true.
Implementation
@override
NumberSpec asNullable() => NumberSpec(
isInteger: isInteger,
minimum: minimum,
maximum: maximum,
exclusiveMinimum: exclusiveMinimum,
exclusiveMaximum: exclusiveMaximum,
multipleOf: multipleOf,
defaultValue: defaultValue,
description: description,
nullable: true,
examples: examples,
isDeprecated: isDeprecated,
);