TargetingManager class

Constructors

TargetingManager(String userId, Map<String, dynamic> currentContext)

Properties

currentContext Map<String, dynamic>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
getter/setter pair

Methods

checkCondition(dynamic cuurentValue, FSOperator operation, dynamic audienceValue) bool
checkTargetGroupIsOkay(TargetingGroup itemTargetGroup) bool
checkTargetingForList(dynamic currentValue, FSOperator opType, List listAudience) bool
getCurrentValueFromCtx(String targetKey) → dynamic
isCurrentValueContainAudience(dynamic currentValue, dynamic audienceValue) bool
Compare contain
isCurrentValueEqualToAudienceValue(dynamic currentValue, dynamic audienceValue) bool
Compare EQUALS
isCurrentValueIsGreaterThanAudience(dynamic currentValue, dynamic audienceValue) bool
Compare greater than
isCurrentValueIsGreaterThanOrEqualAudience(dynamic currentValue, dynamic audienceValue) bool
Compare greater than or equal
isCurrentValueIsLowerThanAudience(dynamic currentValue, dynamic audienceValue) bool
Compare lower than
isCurrentValueIsLowerThanOrEqualAudience(dynamic currentValue, dynamic audienceValue) bool
Compare lower than or equal
isTargetingGroupIsOkay(Targeting? targeting) bool
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

Static Methods

createOperator(String raw) FSOperator