purchaseInProgressStream method

  1. @override
Stream<bool> purchaseInProgressStream()
override

Implementation

@override
Stream<bool> purchaseInProgressStream() {
  // clean streams
  _cleanStreams(_streamControllerPendingPurchase);
  // create new stream controller
  var controller = StreamController<bool>();
  _streamControllerPendingPurchase.add(controller);
  controller.add(_isPendingPurchase);
  _checkPurchaseStateAndLoad();
  return controller.stream;
}