handlePurchasePlanFailedEvent method

Stream<FastPlanBlocState> handlePurchasePlanFailedEvent(
  1. String productId,
  2. dynamic error
)

Implementation

Stream<FastPlanBlocState> handlePurchasePlanFailedEvent(
  String productId,
  dynamic error,
) async* {
  if (_isPurchasePending) {
    debugLog('Purchase plan failed: $productId - $error');

    _isPurchasePending = false;

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