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