Schema.integer constructor

const Schema.integer({
  1. Xml? xml,
  2. String? title,
  3. String? description,
  4. @JsonKey(name: 'default', fromJson: _fromJsonInt) int? defaultValue,
  5. bool? nullable,
  6. @JsonKey(unknownEnumValue: JsonKey.nullForUndefinedEnumValue) IntegerFormat? format,
  7. @JsonKey(fromJson: _fromJsonInt) int? example,
  8. @JsonKey(fromJson: _fromJsonInt) int? minimum,
  9. @JsonKey(fromJson: _fromJsonInt) int? maximum,
  10. bool? exclusiveMinimum,
  11. bool? exclusiveMaximum,
  12. @JsonKey(fromJson: _fromJsonInt) int? multipleOf,
  13. @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
})

An integer schema property

Implementation

const factory Schema.integer({
  Xml? xml,
  String? title,
  String? description,
  @JsonKey(name: 'default', fromJson: _fromJsonInt) int? defaultValue,
  bool? nullable,
  @JsonKey(unknownEnumValue: JsonKey.nullForUndefinedEnumValue)
  IntegerFormat? format,
  @JsonKey(fromJson: _fromJsonInt) int? example,
  @JsonKey(fromJson: _fromJsonInt) int? minimum,
  @JsonKey(fromJson: _fromJsonInt) int? maximum,
  bool? exclusiveMinimum,
  bool? exclusiveMaximum,
  @JsonKey(fromJson: _fromJsonInt) int? multipleOf,
  @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
}) = SchemaInteger;