setReferrer static method
OTHERS When an application is installed from the Google Play Store, Smartlook SDK automatically tracks install referrer A custom referrer can also be set by using the following Referrer value and source of installation are stored per visitor and can be viewed in the Smartlook Dashboard.
Implementation
/// When an application is installed from the Google Play Store,
/// Smartlook SDK automatically tracks install referrer
/// A custom referrer can also be set by using the following
/// Referrer value and source of installation are stored per visitor
/// and can be viewed in the Smartlook Dashboard.
static Future<void> setReferrer(String referrer, String source) async {
await _channel
.invokeMethod('setReferrer', {"referrer": referrer, "source": source});
}