StringPropertySchema constructor
StringPropertySchema({
- String? title,
- String? description,
- int? minLength,
- int? maxLength,
- String? pattern,
- StringFormat? format,
- String? defaultValue,
- List<
String> ? enumValue, - List<
EnumOption> ? oneOf, - 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);