isPendingPurchase property

bool get isPendingPurchase

Implementation

bool get isPendingPurchase => _isPendingPurchase;
set isPendingPurchase (bool value)

Sets the value and updates all Stream listeners

Also cleans all unused streams

Implementation

set isPendingPurchase(bool value) {
  LinkFiveLogger.d("set pending purchase to $value");
  _isPendingPurchase = value;

  // Clean streams
  _cleanStreams(_streamControllerPendingPurchase);
  // send data to stream
  for (var element in _streamControllerPendingPurchase) {
    if (element.hasListener) {
      element.add(_isPendingPurchase);
    }
  }
}