notNull method

AbstractRuleBuilder notNull({
  1. String? message,
})

Checks if the object is not null

Implementation

AbstractRuleBuilder notNull({String? message}) {
  return must((dynamic dyn) => dyn != null, message ?? "Value must not be null", code: "null");
}