whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult badGateWay(
    1. String? exception
    )?,
  2. TResult internalServiceError(
    1. String? exception
    )?,
  3. TResult removedResourceFound(
    1. String? exception
    )?,
  4. TResult resourceForbidden(
    1. String? exception
    )?,
  5. TResult resourceNotFound(
    1. String? exception
    )?,
  6. TResult resourceRemoved(
    1. String? exception
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult Function(String? exception)? badGateWay,
  TResult Function(String? exception)? internalServiceError,
  TResult Function(String? exception)? removedResourceFound,
  TResult Function(String? exception)? resourceForbidden,
  TResult Function(String? exception)? resourceNotFound,
  TResult Function(String? exception)? resourceRemoved,
}) =>
    throw _privateConstructorUsedError;