when<TResult extends Object?> method

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

Implementation

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