EzSchema class

Constructors

EzSchema.shape(Map<String, SchemaValue> _schema, {bool? fillSchema = true, bool noUnknown = false})

Properties

fillSchema bool?
when it's true the form will be filled
final
hashCode int
The hash code for this object.
no setterinherited
noUnknown bool
Disallow unknown fields
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schema Map<String, SchemaValue>
access to the values of the schema
no setter

Methods

catchErrors(Map form) Map
validate the values you have sent and return a Map with errors. each error will have the key from form keys
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validateSync(Map form) → (Map, Map)
validate the values you have sent and return a Map

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) → SchemaValue
get the values of the schema with specific key