Schema.string constructor

Schema.string({
  1. String? format,
  2. String? title,
  3. String? description,
  4. List? examples,
  5. bool? readOnly,
  6. bool? writeOnly,
  7. String? $default,
  8. int? maxLength,
  9. int? minLength,
  10. String? pattern,
})

Creates a Schema for a string.

Implementation

factory Schema.string({
  String? format,
  String? title,
  String? description,
  List<dynamic>? examples,
  bool? readOnly,
  bool? writeOnly,
  String? $default,
  int? maxLength,
  int? minLength,
  String? pattern,
}) => Schema(
  type: 'string',
  format: format,
  title: title,
  description: description,
  examples: examples,
  readOnly: readOnly,
  writeOnly: writeOnly,
  $default: $default,
  minLength: minLength,
  maxLength: maxLength,
  pattern: pattern,
);