whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? newBlock(
    1. int block
    )?,
  2. TResult? invoicePaid(
    1. InvoicePaidDetails details
    )?,
  3. TResult? synced()?,
  4. TResult? paymentSucceed(
    1. Payment details
    )?,
  5. TResult? paymentFailed(
    1. PaymentFailedData details
    )?,
  6. TResult? backupStarted()?,
  7. TResult? backupSucceeded()?,
  8. TResult? backupFailed(
    1. BackupFailedData details
    )?,
  9. TResult? reverseSwapUpdated(
    1. ReverseSwapInfo details
    )?,
  10. TResult? swapUpdated(
    1. SwapInfo details
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(int block)? newBlock,
  TResult? Function(InvoicePaidDetails details)? invoicePaid,
  TResult? Function()? synced,
  TResult? Function(Payment details)? paymentSucceed,
  TResult? Function(PaymentFailedData details)? paymentFailed,
  TResult? Function()? backupStarted,
  TResult? Function()? backupSucceeded,
  TResult? Function(BackupFailedData details)? backupFailed,
  TResult? Function(ReverseSwapInfo details)? reverseSwapUpdated,
  TResult? Function(SwapInfo details)? swapUpdated,
}) =>
    throw _privateConstructorUsedError;