FunnelPresentResult class

What presentFunnel resolves with.

Constructors

FunnelPresentResult({required FunnelPresentOutcome result, required bool purchased, PurchaseResult? customerInfo, RovenueException? lastError, String? reason, Map<String, FunnelPhotoRef> photos = const <String, FunnelPhotoRef>{}, String answersJson = '{}', List<String> preselected = const <String>[]})
Creates a result.
const

Properties

answersJson → String
The visitor's answers by question key, as a JSON object string: every key the funnel wrote — answers, set_variable results and app values — exactly as a web funnel's claim carries them (FunnelClaim.funnelAnswersJson). '{}' when nothing was presented or nothing was answered; decode it with jsonDecode.
final
customerInfo → PurchaseResult?
The entitlements and balances after the purchase; set whenever purchased is true.
final
hashCode → int
The hash code for this object.
no setterinherited
lastError → RovenueException?
The last purchase or restore failure the SDK saw.
final
photos → Map<String, FunnelPhotoRef>
The photos the visitor answered photo_upload questions with, by question key — files on the device, kept until Rovenue.releasePhoto or 7 days. Empty when there were none.
final
preselected → List<String>
The question keys an app value preselected and the visitor left unchanged, so a default can be told from a choice (the claim's funnelPreselectedJson). Empty when none.
final
purchased → bool
Whether a purchase or restore succeeded while it was presented.
final
reason → String?
Why nothing was presented: alreadyPresented, noPresenter, or the placement's unavailable reason.
final
result → FunnelPresentOutcome
How it ended.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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