DartRulesEngine class

Constructors

DartRulesEngine()

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

addVariable(String scope, String name, dynamic value) → void
Add variable to specific scope
executeRules({required Map<String, dynamic> ruleDefinition, Map<String, dynamic>? eventContext}) Future<Map<String, dynamic>>
Execute rules with given rule definition and context
getVariable(String scope, String name) → dynamic
Get variable from specific scope
initialize({Map<String, dynamic>? context}) → void
Initialize the engine with context
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
testEngine() Future<Map<String, dynamic>>
Test if engine is working correctly
toString() String
A string representation of this object.
inherited
updateContext(Map<String, dynamic> updates) → void
Update context variables

Operators

operator ==(Object other) bool
The equality operator.
inherited