maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult bitcoinAddress(
    1. BitcoinAddressData address
    )?,
  2. TResult bolt11(
    1. LNInvoice invoice
    )?,
  3. TResult nodeId(
    1. String nodeId
    )?,
  4. TResult url(
    1. String url
    )?,
  5. TResult lnUrlPay(
    1. LnUrlPayRequestData data
    )?,
  6. TResult lnUrlWithdraw(
    1. LnUrlWithdrawRequestData data
    )?,
  7. TResult lnUrlAuth(
    1. LnUrlAuthRequestData data
    )?,
  8. TResult lnUrlError(
    1. LnUrlErrorData data
    )?,
  9. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(BitcoinAddressData address)? bitcoinAddress,
  TResult Function(LNInvoice invoice)? bolt11,
  TResult Function(String nodeId)? nodeId,
  TResult Function(String url)? url,
  TResult Function(LnUrlPayRequestData data)? lnUrlPay,
  TResult Function(LnUrlWithdrawRequestData data)? lnUrlWithdraw,
  TResult Function(LnUrlAuthRequestData data)? lnUrlAuth,
  TResult Function(LnUrlErrorData data)? lnUrlError,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;