SplitRefundBloc constructor

SplitRefundBloc({
  1. required SplitPaymentApiClient apiClient,
  2. required String splitId,
  3. required String transactionId,
  4. required String businessId,
})

Implementation

SplitRefundBloc({
  required this.apiClient,
  required this.splitId,
  required this.transactionId,
  required this.businessId,
}) : super(const SplitRefundLoading()) {
  on<FetchRefundState>(_onFetchRefundState);
  on<RefundProcessed>(_onRefundProcessed);
  on<RefundRecordSucceeded>(_onRefundRecordSucceeded);
  on<RefundRecordFailed>(_onRefundRecordFailed);
  on<RefundPaymentFailed>(_onRefundPaymentFailed);
  on<RefundCompleted>(_onRefundCompleted);
}