Visitor class

Constructors

Visitor(FlagshipConfig config, String visitorId, Map<String, Object> context)
Create new instance for visitor

Properties

config FlagshipConfig
Configuration
final
decisionManager DecisionManager
Core decision manager , can manage both modes for the sdk
no setter
hashCode int
The hash code for this object.
no setterinherited
modifications Map<String, Modification>
Map for the modification , {"key for the flag": Modification object}
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackingManager TrackingManager
getter/setter pair
visitorId String
VisitorId
final

Methods

activateModification(String key) Future<void>
Activate modification
getCurrentContext() Map<String, Object>
Get the current context for the visitor
getModification(String key, Object defaultValue, {bool activate = false}) → dynamic
Get Modification
getModificationInfo(String key) Map<String, Object>?
Get the modification infos relative to flag (modification)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendHit(FSHitProtocol hit) Future<void>
Send hit
synchronizeModifications() Future<FSStatus>
Synchronize modification for the visitor
toString() String
A string representation of this object.
inherited
updateContext(String key, Object value) → void
Update context with key and value
updateContextWithMap(Map<String, Object> context) → void
Update context directely with map for <String, Object>

Operators

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