EnumSchema class
- Inheritance
-
- Object
- SchemaValue<
String> - StringSchema
- EnumSchema
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isOptional → bool
-
finalinherited
- isRequired → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
validators
→ List<
Validator< String> > -
finalinherited
-
values
→ List<
String> -
final
Methods
-
copyWith(
{List< String> ? values, bool? isOptional, List<Validator< ? validators}) → EnumSchemaString> > -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
optional(
) → SchemaValue< String> -
inherited
-
required(
) → SchemaValue< String> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tryParse(
Object? value) → String? -
inherited
-
validate(
List< String> path, Object? value) → SchemaValidationResult -
override
-
validateOrThrow(
String key, Object value) → void -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited