Rule<FACT extends Object, VALUE extends Object> class abstract

A block that accepts a fact, validates it and returns a RuleResponse which provides many useful information like

  • if the rule was successful or not.
  • the fact on which the rule was applied.
  • the return value on success.
  • the exception on failure.
Inheritance
Implementers

Constructors

Rule()
const

Properties

fact → FACT
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply() RuleResponse<VALUE>
An alias for the execute function.
inherited
execute() RuleResponse<VALUE>
inherited
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 ==(Object other) bool
The equality operator.
inherited