maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult serverError(
    1. ServerError value
    )?,
  2. TResult networkError(
    1. NetworkError value
    )?,
  3. TResult unknownError(
    1. UnknownError value
    )?,
  4. TResult noData(
    1. NoData value
    )?,
  5. TResult nothing(
    1. Nothing value
    )?,
  6. TResult login(
    1. Login value
    )?,
  7. TResult warningError(
    1. WarningError value
    )?,
  8. TResult crashError(
    1. CrashError value
    )?,
  9. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(ServerError value)? serverError,
  TResult Function(NetworkError value)? networkError,
  TResult Function(UnknownError value)? unknownError,
  TResult Function(NoData value)? noData,
  TResult Function(Nothing value)? nothing,
  TResult Function(Login value)? login,
  TResult Function(WarningError value)? warningError,
  TResult Function(CrashError value)? crashError,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;