getCode static method

Future getCode(
  1. String transactionUuid,
  2. int userId
)

Implementation

static Future<dynamic> getCode(String transactionUuid, int userId) async {
  try {
    final result = await _channel.invokeMethod('getCode', [
      <String, dynamic>{
        'transactionUuid': transactionUuid,
        'userId': userId,
      }
    ]);

    return json.decode(result);
    ;
  } on PlatformException catch (exception) {
    return exception;
  }
}