LyStringIsIP class
Validation that requires a string to be an IP address.
If the value is not an IP address, the message is returned.
Example:
final validator = StringIsIP('Invalid IP', '4');
final result = validation('16.51.1');
print(result); // Invalid IP
Constructors
- LyStringIsIP(String message, dynamic version)
- Validation that requires a string to be an IP address.
Properties
Methods
-
call(
String value) → String? -
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 &(
LyBaseValidator< String> other) → LyBaseValidator<String> -
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator |(
LyBaseValidator< String> other) → LyBaseValidator<String> -
inherited