LyStringIsBase64 constructor
LyStringIsBase64(
- String message
Validation that requires a string to be base64 encoded.
If the value is not base64 encoded, the message
is returned.
Example:
final validator = StringIsBase64('Invalid base64');
final result = validation('YWJj123');
print(result); // Invalid base64
Implementation
LyStringIsBase64(super.message);