RevCatSubscriptionBloc constructor
RevCatSubscriptionBloc(
- RevCatIapService _iapService,
- 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());
}