notNull<S> static method

Validator<S> notNull<S>(
  1. dynamic error
)

Creates a validator that checks input is not null

Implementation

static Validator<S> notNull<S>(dynamic error) {
  return Verify.that<S>((s) => s != null, error: error);
}