RemoteValidator class

Remote validator for server-side validation

Inheritance

Constructors

RemoteValidator.new({required String endpoint, Map<String, String>? headers, String? fieldName, String? message, int debounceMilliseconds = 500})

Properties

endpoint String
final
fieldName String?
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
message String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancel() → void
Cancel pending validation
inherited
dispose() → void
inherited
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
inherited
validateAsync(dynamic value, RenderContext? context) Future<ValidationResult>
Async validation method to implement
override
validateWithDebounce(dynamic value, RenderContext? context, void callback(ValidationResult)) → void
Validate with debouncing
inherited

Operators

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