appsFlyerUpdate method

void appsFlyerUpdate({
  1. AppFlyerProps? appFlyerProps,
})

Implementation

void appsFlyerUpdate({AppFlyerProps? appFlyerProps}) {
  this.appFlyerProps = appFlyerProps ?? this.appFlyerProps;

  if (GetIt.I.isRegistered<AppFlyerAnalyticsImpl>()) {
    GetIt.I.unregister<AppFlyerAnalyticsImpl>();
  }

  if (appFlyerProps != null) {
    GetIt.I.registerSingleton(AppFlyerAnalyticsImpl(props: appFlyerProps));
  }
}