map<TResult extends Object?> method

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

Implementation

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