maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult requestCancelled()?,
  2. TResult unauthorizedRequest()?,
  3. TResult badRequest()?,
  4. TResult notFound(
    1. String reason
    )?,
  5. TResult methodNotAllowed()?,
  6. TResult notAcceptable()?,
  7. TResult requestTimeout()?,
  8. TResult sendTimeout()?,
  9. TResult conflict()?,
  10. TResult internalServerError()?,
  11. TResult notImplemented()?,
  12. TResult serviceUnavailable()?,
  13. TResult noInternetConnection()?,
  14. TResult formatException()?,
  15. TResult unableToProcess()?,
  16. TResult defaultError(
    1. String error
    )?,
  17. TResult unexpectedError()?,
  18. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function()? requestCancelled,
  TResult Function()? unauthorizedRequest,
  TResult Function()? badRequest,
  TResult Function(String reason)? notFound,
  TResult Function()? methodNotAllowed,
  TResult Function()? notAcceptable,
  TResult Function()? requestTimeout,
  TResult Function()? sendTimeout,
  TResult Function()? conflict,
  TResult Function()? internalServerError,
  TResult Function()? notImplemented,
  TResult Function()? serviceUnavailable,
  TResult Function()? noInternetConnection,
  TResult Function()? formatException,
  TResult Function()? unableToProcess,
  TResult Function(String error)? defaultError,
  TResult Function()? unexpectedError,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;