ValidationEvent class
The ValidationResultEvent class defines the event object that is passed
to event listeners for the valid and invalid validator events.
class ValidationEvent {
static const String VALID = "valid";
static const String INVALID = "invalid";
/**
* Event type
*/
final String type;
/**
* The property, which contains an Array of ValidationResult objects,
* one for each field examined by the validator.
*/
final List<ValidationResult> results;
/**
* Create an instance of ValidationEvent of specified [type] and [results].
*/
ValidationEvent(this.type, [this.results = null]);
}
Static Properties
const String INVALID #
static const String INVALID = "invalid"
const String VALID #
static const String VALID = "valid"
Constructors
new ValidationEvent(String type, [List<ValidationResult> results = null]) #
Create an instance of ValidationEvent of specified type and results.
ValidationEvent(this.type, [this.results = null]);
Properties
final List<ValidationResult> results #
The property, which contains an Array of ValidationResult objects, one for each field examined by the validator.
final List<ValidationResult> results
final String type #
Event type
final String type