required function

LivrRule required(
  1. List<Object?> args,
  2. RuleContext context
)

required: the value must be present, not null and not an empty string. 0 and false are valid values.

Implementation

LivrRule required(List<Object?> args, RuleContext context) => _required;