LyStringIsAlphanumeric class
Validation that requires a string to contain only numbers and letters.
If the value contains anything other than numbers and letters, the message is returned.
Example:
final validator = StringIsAlphanumeric('Invalid alphanumeric');
final result = validation('abc@123');
print(result); // Invalid alphanumeric
Constructors
- LyStringIsAlphanumeric(String message)
- Validation that requires a string to contain only numbers and letters.
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