call method

  1. @override
bool call(
  1. dynamic object, {
  2. Cell? cell,
  3. dynamic arguments,
  4. bool exception(
    1. TestRule<dynamic, Cell> rule,
    2. Exception e
    ) = TestRuleTrue.passed,
})
override

Executes the rule validation against an object in a cell context.

Parameters:

  • object: The object to validate
  • cell: Optional cell context for the validation
  • arguments: Additional arguments needed for validation
  • exception: Exception handler callback when validation fails

Returns true if validation passes, false otherwise.

Implementations should:

  1. Validate the object against the rule's criteria
  2. Use the exception handler for any validation errors
  3. Return the validation result

Implementation

@override
bool call(object, {Cell? cell, arguments, bool Function(TestRule<dynamic, Cell> rule, Exception e) exception = TestRuleTrue.passed}) => true;