ModelState class

Constructors

ModelState()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Properties

errors Map<String, ValidationError>
Gets all errors that flutterModelFormValidator has detected.
read-only

Static Methods

isValid<TModel>(TModel model) bool
Gets the state of current model binding of TModel type. Browses all declared metadata of ValidationAnnotation type, for each property into your class model. Then, executes "IsValid" method that returns true or false. For each property, first of them that returns false invalidates your property, and so, your model. If there is none, your property and model are valid.
isValidProperty<TModel>(TModel model, String propertyName) bool
Gets the state of current propertyName into the model binding of TModel type. Browses all declared metadata of ValidationAnnotation type for property. Then, executes "IsValid" method that returns true or false. First of them that retuns false invalidates your property. If there is none, your property is valid.