TestActionRule<C extends Cell> constructor

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

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

Parameters:

  • rule: The validation function that takes an action Function and returns a bool
  • user: Optional context object passed to the validation function

Implementation

TestActionRule({required TestActionRuleType<C> super.rule, super.user}) : super();