ValidationEngine class
Validation engine for MCP UI DSL v1.0
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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 Methods
-
createFlutterValidator(
List< ValidationRule> rules) → String? Function(String?) - Create a Flutter validator function from rules
-
isFormValid(
Map< String, ValidationResult> results) → bool - Check if all form fields are valid
-
parseValidation(
dynamic validation) → List< ValidationRule> - Parse validation definition from MCP UI DSL v1.0 format
-
validate(
dynamic value, List< ValidationRule> rules) → ValidationResult - Validate a value against rules
-
validateForm(
Map< String, dynamic> formData, Map<String, List< fieldRules) → Map<ValidationRule> >String, ValidationResult> - Validate form data