GBConditionEvaluator class

Evaluator class fro condition.

Constructors

GBConditionEvaluator()

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

elemMatch(dynamic attributeValue, dynamic condition) bool
This checks if attributeValue is an array, and if so at least one of the array items must match the condition
evalAnd(dynamic attributes, List conditionObj) bool
Evaluate AND conditions against given attributes
evalConditionValue(dynamic conditionValue, dynamic attributeValue) bool
Evaluates Condition Value against given condition & attributes
evalOperatorCondition(String operator, dynamic attributeValue, dynamic conditionValue) bool
This function is just a case statement that handles all the possible operators There are basic comparison operators in the form attributeValue {op} conditionValue.
evalOr(Map<String, dynamic> attributes, List conditionObj) bool
Evaluate OR conditions against given attributes
evaluateCondition(Map<String, dynamic> attributes, dynamic conditionOBJ) bool
This is the main function used to evaluate a condition.
getPath(dynamic obj, String key) → dynamic
Given attributes and a dot-separated path string, return the value at that path (or null/undefined if the path doesn't exist)
getType(dynamic obj) GBAttributeType
This returns the data type of the passed in argument.
isIn(dynamic actualValue, List conditionValue) bool
isOperatorObject(dynamic obj) bool
This accepts a parsed JSON object as input and returns true if every key in the object starts with $
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