Visitor class
Methods
-
activateModification(String key)
→ Future<void>
-
Activate modification
-
authenticate(String visitorId)
→ dynamic
-
Use authenticate methode to go from Logged-out session to logged-in session
-
clearContext()
→ void
-
Update context directely with map for <String, Object>
-
fetchFlags()
→ Future<void>
-
-
getConsent()
→ bool
-
-
getContext()
→ Map<String, Object>
-
Get context
-
getCurrentContext()
→ Map<String, Object>
-
Get the current context for the visitor
-
getFlag<T>(String key, T defaultValue)
→ Flag
-
Get Flag object
-
getFlagSyncStatus()
→ FlagSyncStatus
-
-
getModification<T>(String key, T defaultValue, {bool activate = false})
→ T
-
Get Modification
-
getModificationInfo(String key)
→ Map<String, dynamic>?
-
Get the modification infos relative to flag (modification)
-
isAuthenticated()
→ bool
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
sendHit(BaseHit hit)
→ Future<void>
-
Send hit
-
setConsent(bool newValue)
→ void
-
Set Consent
-
synchronizeModifications()
→ Future<void>
-
Synchronize modification for the visitor
-
toString()
→ String
-
A string representation of this object.
inherited
-
unauthenticate()
→ dynamic
-
Use authenticate methode to go from Logged in session to logged out session
-
updateContext<T>(String key, T value)
→ void
-
Update context with key and value
-
updateContextWithMap(Map<String, Object> context)
→ void
-
Update context directely with map for <String, Object>
-
updateFlagshipContext<T>(FlagshipContext flagshipContext, T value)
→ void
-
Update with predefined context