Schema.string constructor

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

Construct a schema for a String value.

Implementation

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