TestActionRuleType<C extends Cell> typedef

TestActionRuleType<C extends Cell> = bool Function(Function action, C cell, {Arguments? arguments, dynamic user})

Function signature for validating actions performed on cells.

Parameters:

  • action: The function being validated
  • cell: The cell receiving the action
  • arguments: Optional arguments being passed
  • user: Optional user context

Returns true if the action is allowed, false otherwise

Implementation

typedef TestActionRuleType<C extends Cell> = bool Function(Function action, C cell, {Arguments? arguments, dynamic user});