CustomValidator class
Custom validator that uses expressions for validation according to MCP UI DSL v1.0 specification
Constructors
- CustomValidator.new({required String expression, required BindingEngine bindingEngine, String? message})
Properties
- bindingEngine → BindingEngine
-
final
- expression → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
final
- 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
-
toJson(
) → Map< String, dynamic> -
Convert to JSON
override
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
dynamic value, RenderContext? context) → ValidationResult -
Validate a value
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited