static Validator<Object?> notNull({String? error}) => (value, context) { if (value != null) return (true, null); return (false, error ?? context.errors.generalErrors.notNull()); };