onSdkInit method
Implementation
Future<void> onSdkInit(Future<void> Function() sdkInit) async {
try {
if (getIt.currentScopeName == cardScope) {
await getIt.resetScope();
} else {
getIt.pushNewScope(scopeName: cardScope);
}
await sdkInit();
} catch (e) {
if (getIt.currentScopeName == cardScope) {
await getIt.resetScope();
}
}
}