Schema.number constructor

Schema.number({
  1. String? description,
  2. String? title,
  3. bool? nullable,
  4. String? format,
  5. double? minimum,
  6. double? maximum,
})

Construct a schema for a non-integer number.

The format may be "float" or "double".

Implementation

Schema.number({
  String? description,
  String? title,
  bool? nullable,
  String? format,
  double? minimum,
  double? maximum,
}) : this(
        SchemaType.number,
        description: description,
        title: title,
        nullable: nullable,
        format: format,
        minimum: minimum,
        maximum: maximum,
      );