operator + method

  1. @override
TestObject<Cell> operator +(
  1. TestRule<dynamic, Cell> other
)
override

Combines this rule with another rule to create a composite validation.

The resulting TestObject will evaluate both rules sequentially, returning false if either rule fails.

Example:

final composite = rule1 + rule2; // Both rules must pass

Implementation

@override
TestObject operator +(TestRule other) => const TestObjectTrue();