TestRuleTrue class
A concrete implementation of TestRule that always returns true.
This serves as:
- A default "pass-through" rule
- A base case for rule composition
- An exception handler default
Constructors
- TestRuleTrue.new()
-
Creates a rule that always passes.
const
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, {Cell? cell, dynamic arguments, bool exception(TestRule< dynamic, Cell> rule, Exception e) = TestRuleTrue.passed}) → bool -
Executes the rule validation against an object in a cell context.
override
-
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<Cell> -
Combines this rule with another rule to create a composite validation.
override
-
operator ==(
Object other) → bool -
The equality operator.
inherited