whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? timeout()?,
  2. TResult? connectivity()?,
  3. TResult? consensusNotReached()?,
  4. TResult? invalidTransaction()?,
  5. TResult? invalidConfirmation()?,
  6. TResult? insufficientFunds()?,
  7. TResult? serviceNotFound()?,
  8. TResult? serviceAlreadyExists()?,
  9. TResult? userRejected()?,
  10. TResult? unknownAccount(
    1. String accountName
    )?,
  11. TResult? rpcError(
    1. int code,
    2. String message,
    3. Object? data
    )?,
  12. TResult? other(
    1. int? code,
    2. Object? data,
    3. String? message
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function()? timeout,
  TResult? Function()? connectivity,
  TResult? Function()? consensusNotReached,
  TResult? Function()? invalidTransaction,
  TResult? Function()? invalidConfirmation,
  TResult? Function()? insufficientFunds,
  TResult? Function()? serviceNotFound,
  TResult? Function()? serviceAlreadyExists,
  TResult? Function()? userRejected,
  TResult? Function(String accountName)? unknownAccount,
  TResult? Function(int code, String message, Object? data)? rpcError,
  TResult? Function(int? code, Object? data, String? message)? other,
}) =>
    throw _privateConstructorUsedError;