triggerInteraction static method

Future<ScLoanSuccess> triggerInteraction(
  1. ScLoanInfo loanInfo
)

Implementation

static Future<ScLoanSuccess> triggerInteraction(ScLoanInfo loanInfo) async {
  try {
    String? triggerInteractionResponse =
        await _channel.invokeMethod('triggerInteraction', <String, dynamic>{
      "interactionToken": loanInfo.interactionToken,
    });
    return ScLoanSuccess.fromJson(triggerInteractionResponse ?? "{}");
  } on PlatformException catch (e) {
    throw e.toScLoanError;
  }
}