influto library

InfluTo Flutter SDK — influencer attribution + store-direct purchase validation.

Classes

AccessResult
Result of InfluTo.checkAccess — server-authoritative premium access (platform-independent comp).
AttributionResult
Result of InfluTo.checkAttribution.
Campaign
A campaign from /sdk/campaigns.
CampaignInfo
Campaign details nested in validate/set results.
CodeValidationResult
Result of InfluTo.validateCode / InfluTo.applyCode.
Influencer
Influencer details, when available.
InfluTo
InfluTo Flutter SDK — influencer attribution + store-direct purchase validation.
InfluToConfig
Configuration for InfluTo.initialize.
PurchaseResult
Result of InfluTo.reportPurchase (store-direct).
ReferralCodeInput
Pre-built, configurable referral-code input.
SetCodeResult
Result of InfluTo.setReferralCode.
TrackEventOptions
Options for InfluTo.trackEvent.

Typedefs

RevenueCatHook = Future<void> Function(Map<String, String> attributes)
Called by the SDK when an influto_code is established (attribution or manual entry). The host implements it with one line of purchases_flutter, keeping the RevenueCat dependency in the APP — never in this SDK:

Exceptions / Errors

InfluToException
Thrown by the throwing methods (initialize, reportPurchase) on failure.