notNull method
Checks if the object is not null
Implementation
AbstractRuleBuilder notNull({String? message}) {
return must(
(dynamic dyn) => dyn != null,
message != null
? message
: useKeyAsElementName
? "$key must not be null"
: "Value must not be null",
code: "null");
}