paymentSheetEvents property

Stream<PaymentSheetEvent> paymentSheetEvents
latefinal

Typed application-facing lifecycle events for the active payment sheet.

Subscribe before presenting the sheet so the first event is not missed.

Implementation

late final Stream<PaymentSheetEvent> paymentSheetEvents =
    paymentSheetTelemetryEvents
        .map(_toPaymentSheetEvent)
        .where((event) => event != null)
        .cast<PaymentSheetEvent>();