notNull static method

FormFieldValidator notNull([
  1. String? message
])

Implementation

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

    return null;
  };
}