TestLinkRule<C extends Cell> constructor

TestLinkRule<C extends Cell>({
  1. required TestSignalRuleType<C> rule,
  2. dynamic user,
})

Creates a TestLinkRule with the given validation function and optional user context.

Parameters:

  • rule: The validation function that takes a Cell link and returns a bool
  • user: Optional context object passed to the validation function

Implementation

TestLinkRule({required TestSignalRuleType<C> super.rule, super.user}) : super();