TestCollectiveElementRule<E, C extends Collective<E> > class
A rule implementation for validating elements in a Collective.
Wraps a validation function that determines whether a specific element is allowed in a collective.
- Implemented types
Constructors
-
TestCollectiveElementRule.new({required TestCollectiveElementType<
E, C> rule, dynamic user}) - Creates an element validation rule.
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
-
call(
dynamic object, {covariant C? cell, dynamic arguments, bool exception(TestRule< dynamic, Cell> rule, Exception e) = TestRuleTrue.passed}) → bool - Executes the rule's validation logic.
-
element(
E? element, covariant C collective, {Function? action}) → bool - Validates an element 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