initLoanConnect function
dynamic
initLoanConnect({})
Implementation
initLoanConnect({
ParamsLoanConnect? params,
RequestAuthToken? auth,
ThemePair? theme,
String? token,
Function(EventHandlerLoanConnect)? events,
bool enableLog = true,
}) async {
_primary(params, enableLog, auth, token).whenComplete(() async {
theme == null
? info('No theme was provided. Applying defaults.')
: put<IServiceTheme>(() => ServiceTheme.fromJson(theme));
events?.call(put(() => EventHandlerLoanConnect()));
if (params?.skipToServicerID != null) {
final servicer = await get<IUseCaseAllServicers>()
.getServicer(params!.skipToServicerID!)
.onError((err, stack) => errorWithStack(err ?? 'null', stack));
replace<Servicer>(() => servicer);
}
});
}