customAction method

Future<TefTransactionResponseMSitef?> customAction({
  1. required Map<String, dynamic> params,
})

Implementation

Future<TefTransactionResponseMSitef?> customAction({
  required Map<String, dynamic> params,
}) async {
  try {
    final resultTransaction = await channel.invokeMethod(
      'action',
      params,
    );

    final resultJson = json.decode(resultTransaction);

    final model = TefTransactionModel.fromMap(resultJson);

    return _fetchTefTransactionResponse(
      model: model,
    );
  } catch (e) {
    return null;
  }
}