Jsonlogic class

Jsonlogic evaluates the jsonlogic rules for the given data.

Constructors

Jsonlogic()
Creates the Jsonlogic class with default operations.
Jsonlogic.empty()
Creates the Jsonlogic class with no operations. The operations needs to manually added via the add function.

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

add(String name, Operator op) → void
add a function/operator.
apply(dynamic rule, dynamic data) → dynamic
applies the give rule with given data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(String name) → void
remove a function/operator
toString() String
A string representation of this object.
inherited

Operators

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