IPAddressValidator<T> class

Validates that a string is a valid IP address (IPv4 or IPv6)

Inheritance

Constructors

IPAddressValidator()

Properties

customErrorMessage String?
Custom error message override.
getter/setter pairinherited
defaultErrorMessage String
The default error message for this validator.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getErrorMessage(ValidationContext<T> context, String? value) String
Gets the error message for this validator.
inherited
isValid(ValidationContext<T> context, String? value) bool
Determines if the value is valid.
override
isValidAsync(ValidationContext<T> context, String? value) Future<bool>
Determines if the value is valid asynchronously.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(ValidationContext<T> context, String? value, String propertyName) List<ValidationFailure>
Validates the property value.
inherited
validateAsync(ValidationContext<T> context, String? value, String propertyName) Future<List<ValidationFailure>>
Validates the property value asynchronously.
inherited

Operators

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