Schema.number constructor

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

A number schema property

Implementation

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