mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  1. TResult? timeout(
    1. _TransactionTimeout value
    )?,
  2. TResult? connectivity(
    1. _TransactionConnectionError value
    )?,
  3. TResult? consensusNotReached(
    1. _TransactionConsensusNotReachedError value
    )?,
  4. TResult? invalidTransaction(
    1. _TransactionInvalid value
    )?,
  5. TResult? invalidConfirmation(
    1. _TransactionInvalidConfirmation value
    )?,
  6. TResult? insufficientFunds(
    1. _TransactionInsufficientFunds value
    )?,
  7. TResult? serviceNotFound(
    1. _TransactionServiceNotFound value
    )?,
  8. TResult? serviceAlreadyExists(
    1. _TransactionServiceAlreadyExists value
    )?,
  9. TResult? userRejected(
    1. _TransactionUserRejected value
    )?,
  10. TResult? unknownAccount(
    1. _TransactionUnknownAccount value
    )?,
  11. TResult? rpcError(
    1. _TransactionRPCError value
    )?,
  12. TResult? other(
    1. _TransactionOtherError value
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(_TransactionTimeout value)? timeout,
  TResult? Function(_TransactionConnectionError value)? connectivity,
  TResult? Function(_TransactionConsensusNotReachedError value)?
      consensusNotReached,
  TResult? Function(_TransactionInvalid value)? invalidTransaction,
  TResult? Function(_TransactionInvalidConfirmation value)?
      invalidConfirmation,
  TResult? Function(_TransactionInsufficientFunds value)? insufficientFunds,
  TResult? Function(_TransactionServiceNotFound value)? serviceNotFound,
  TResult? Function(_TransactionServiceAlreadyExists value)?
      serviceAlreadyExists,
  TResult? Function(_TransactionUserRejected value)? userRejected,
  TResult? Function(_TransactionUnknownAccount value)? unknownAccount,
  TResult? Function(_TransactionRPCError value)? rpcError,
  TResult? Function(_TransactionOtherError value)? other,
}) =>
    throw _privateConstructorUsedError;