operator + method

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

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<C> operator +(TestRule other) {
  return TestObject<C>.fromRules(rules: [other, this]);
}