Schema.number constructor

Schema.number({
  1. String? description,
  2. bool? nullable,
  3. String? format,
})

Construct a schema for a non-integer number.

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

Implementation

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