NumberSpec constructor

const NumberSpec({
  1. bool isInteger = false,
  2. num? minimum,
  3. num? maximum,
  4. bool exclusiveMinimum = false,
  5. bool exclusiveMaximum = false,
  6. num? multipleOf,
  7. num? defaultValue,
  8. String? description,
  9. bool nullable = false,
  10. List<Object>? examples,
  11. bool isDeprecated = false,
})

Creates a new NumberSpec.

Implementation

const NumberSpec({
  this.isInteger = false,
  this.minimum,
  this.maximum,
  this.exclusiveMinimum = false,
  this.exclusiveMaximum = false,
  this.multipleOf,
  this.defaultValue,
  super.description,
  super.nullable,
  super.examples,
  super.isDeprecated,
});