call method
Executes the rule's validation logic.
Parameters:
object
: The object being validatedcell
: Optional cell context for the validationarguments
: Additional operation argumentsexception
: Handler for any exceptions during validation
Returns true if validation passes, false if validation fails.
Implementation
@override
bool call(object, {covariant C? cell, arguments, bool Function(TestRule rule, Exception e) exception = TestRuleTrue.passed}) {
try {
if (object is E && cell != null && (arguments == null || arguments is Function)) {
return element(object, cell, action: arguments);
}
} catch(_) {}
return true;
}