LyStringContains class
Validation that requires a string to contain another string.
If the value does not contain the seed then return the message,
Example:
final validator = StringContains('Value not contains', 'abc');
final result = validation('efg');
print(result); // Value not contains
Constructors
- LyStringContains(String message, dynamic seed)
- Validation that requires a string to contain another string.
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