exist method
Instructs StringMust to make sure the given string is not null.
Implementation
void exist([String? errorMessage]) {
_validators.add((value) {
if (value == null) return errorMessage ?? 'The given string is null';
return '';
});
}