TestRuleTrue class

A concrete implementation of TestRule that always returns true.

This serves as:

  1. A default "pass-through" rule
  2. A base case for rule composition
  3. An exception handler default
Implemented types

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

Static Methods

passed(TestRule<dynamic, Cell> rule, Exception e) bool
Default exception handler that always returns true (allows the operation).