notNull static method

FormFieldValidator<num> notNull([
  1. String? message
])

Implementation

static FormFieldValidator<num> notNull([String? message]) {
  return (value) {
    if (value == null) {
      return message ?? 'Value must not be null';
    }

    return null;
  };
}