Schema.string constructor

const Schema.string({
  1. Xml? xml,
  2. String? title,
  3. String? description,
  4. @JsonKey(name: 'default') String? defaultValue,
  5. bool? nullable,
  6. @JsonKey(unknownEnumValue: JsonKey.nullForUndefinedEnumValue) StringFormat? format,
  7. String? pattern,
  8. String? example,
  9. @JsonKey(fromJson: _fromJsonInt) int? minLength,
  10. @JsonKey(fromJson: _fromJsonInt) int? maxLength,
  11. bool? exclusiveMinimum,
  12. bool? exclusiveMaximum,
  13. @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
})

Implementation

const factory Schema.string({
  Xml? xml,
  String? title,
  String? description,
  @JsonKey(name: 'default') String? defaultValue,
  bool? nullable,
  @JsonKey(unknownEnumValue: JsonKey.nullForUndefinedEnumValue)
  StringFormat? format,
  String? pattern,
  String? example,
  @JsonKey(fromJson: _fromJsonInt) int? minLength,
  @JsonKey(fromJson: _fromJsonInt) int? maxLength,
  bool? exclusiveMinimum,
  bool? exclusiveMaximum,
  @JsonKey(name: '\$ref') @_SchemaRefConverter() String? ref,
}) = SchemaString;