Schema.integer constructor

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

Construct a schema for an integer number.

The format may be "int32" or "int64".

Implementation

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