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. AcpJsonMap? meta,
})

Implementation

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