LyNullableStringIsInt constructor

LyNullableStringIsInt(
  1. String message
)

Validation that requires a string to be an integer.

If the value is not an integer, the message is returned.

Example:

final validator = LyNullableStringIsInt('Invalid integer');
final result = validation('5.5');
print(result); // Invalid integer

Implementation

LyNullableStringIsInt(super.message);