StringPropertySchema constructor

StringPropertySchema({
  1. String? title,
  2. String? description,
  3. int? minLength,
  4. int? maxLength,
  5. String? pattern,
  6. StringFormat? format,
  7. String? defaultValue,
  8. List<String>? enumValue,
  9. List<EnumOption>? oneOf,
  10. AcpJsonObject? meta,
})

Creates a StringPropertySchema value.

Implementation

StringPropertySchema({
  this.title,
  this.description,
  this.minLength,
  this.maxLength,
  this.pattern,
  this.format,
  this.defaultValue,
  List<String>? enumValue,
  List<EnumOption>? oneOf,
  this.meta,
}) : enumValue = enumValue == null
         ? null
         : List<String>.unmodifiable(enumValue),
     oneOf = oneOf == null ? null : List<EnumOption>.unmodifiable(oneOf);