handlePurchasePlanCanceledEvent method

Stream<FastPlanBlocState> handlePurchasePlanCanceledEvent(
  1. String productId
)

Implementation

Stream<FastPlanBlocState> handlePurchasePlanCanceledEvent(
  String productId,
) async* {
  if (_isPurchasePending) {
    debugLog('Purchase plan canceled: $productId');

    _isPurchasePending = false;

    yield currentState.copyWith(isPlanPurchasePending: false);
  }
}