StringSchemaFormat.of constructor
StringSchemaFormat.of(
- String value
The value value; one outside the schema is kept as is.
Implementation
factory StringSchemaFormat.of(String value) => switch (value) {
'date' => date,
'date-time' => dateTime,
'email' => email,
'uri' => uri,
_ => StringSchemaFormat._(value),
};