RevCatSubscriptionBloc constructor

RevCatSubscriptionBloc(
  1. RevCatIapService _iapService,
  2. MonetizedRepo _monetizedRepo
)

Implementation

RevCatSubscriptionBloc(this._iapService, this._monetizedRepo) {
  watch<RCConnectSubscriptionServiceEvent>(
    _handleRCConnectSubscriptionServiceEvent,
    transformer: droppable(),
  );
  watch<RCCheckEntitlementEvent>(
    _handleRCCheckEntitlementEvent,
    transformer: restartable(),
  );
  watch<RCRequestSubscriptionEvent>(
    _handleRCRequestSubscriptionEvent,
    transformer: sequential(),
  );
  watch<RCRestoreSubscriptionEvent>(
    _handleRCRestoreSubscriptionEvent,
    transformer: restartable(),
  );
  watch<RCFetchOfferingsEvent>(
    _handleRCFetchOfferingsEvent,
    transformer: restartable(),
  );
  watch<_RCUpdatePurchaseInfoEvent>(
    _handleRCUpdatePurchaseInfoEvent,
    transformer: sequential(),
  );
  add(RCConnectSubscriptionServiceEvent());
}