notNull static method
Implementation
static FormFieldValidator notNull([String? message]) {
return (value) {
if (value == null) {
return message ?? 'This field is required';
}
return null;
};
}
static FormFieldValidator notNull([String? message]) {
return (value) {
if (value == null) {
return message ?? 'This field is required';
}
return null;
};
}