initialize static method

  1. @Deprecated('Use enable() after SmartLinks.initialize(enablePushAds: true)')
Future<void> initialize({
  1. String? apiKey,
  2. int? appId,
  3. String? appUserId,
})

Implementation

@Deprecated('Use enable() after SmartLinks.initialize(enablePushAds: true)')
static Future<void> initialize({
  String? apiKey,
  int? appId,
  String? appUserId,
}) async {
  if (!SmartLinksCore.isInitialized && apiKey != null && apiKey.isNotEmpty) {
    await SmartLinksCore.initialize(apiKey: apiKey);
  }
  await enable(appId: appId);
}