log method
Use this method to log an outcome and send the context event to the backend
Implementation
Future<void> log(Outcome outcome) {
if (!_contextId.isValid()) {
print(
"[ContextSDK] Invalid context received, please contact support@contextsdk.com");
return Future.value();
}
return ContextSdkPlatform.instance
.contextLog(_contextId.contextId, outcome.value, true);
}