checkForIncompleteTransaction static method

Future<String> checkForIncompleteTransaction(
  1. dynamic json
)

Implementation

static Future<String> checkForIncompleteTransaction(json) async {
  Completer<String> completer = Completer<String>();
  _eventChannel.receiveBroadcastStream().listen((event) {
    debugPrint(event);
    completer.complete(event);
  }, onError: (error) {
    debugPrint(error);
    completer.completeError(error);
  });
  _channel.invokeMethod('checkForIncompleteTransaction', json);
  return completer.future;
}