TestActionRule<C extends Cell> class
A specialized test rule for validating function actions within a Cell context.
Throws ArgumentError if:
- Implemented types
Constructors
-
TestActionRule.new({required TestActionRuleType<
C> rule, dynamic user}) - Creates a TestActionRule with the given validation function and optional user context.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
action(
Function action, C host, {Arguments? arguments}) → bool - Applies the validation rule to a specific action.
-
call(
Object? object, {C? cell, dynamic arguments, bool exception(TestRule< dynamic, Cell> rule, Exception e) = TestRuleTrue.passed}) → bool - Validates the given action against this rule.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator +(
TestRule< dynamic, Cell> other) → TestObject<C> -
Combines this rule with another rule to create a composite validation.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited