NetworkError class abstract

Implemented types

Constructors

NetworkError()
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult serverError(ServerError value), required TResult networkError(NetworkError value), required TResult unknownError(UnknownError value), required TResult noData(NoData value), required TResult nothing(Nothing value), required TResult login(Login value), required TResult warningError(WarningError value), required TResult crashError(CrashError value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult serverError(ServerError value)?, TResult networkError(NetworkError value)?, TResult unknownError(UnknownError value)?, TResult noData(NoData value)?, TResult nothing(Nothing value)?, TResult login(Login value)?, TResult warningError(WarningError value)?, TResult crashError(CrashError value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult serverError(ServerError value)?, TResult networkError(NetworkError value)?, TResult unknownError(UnknownError value)?, TResult noData(NoData value)?, TResult nothing(Nothing value)?, TResult login(Login value)?, TResult warningError(WarningError value)?, TResult crashError(CrashError value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult serverError(int code, List<String> msg, String data)?, TResult networkError()?, TResult unknownError(int code, String msg, String data)?, TResult noData()?, TResult nothing()?, TResult login(List<String> msg, String data, String codeName)?, TResult warningError(int code, List<String> msg, String data)?, TResult crashError(int code, dynamic msg, String data)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult serverError(int code, List<String> msg, String data), required TResult networkError(), required TResult unknownError(int code, String msg, String data), required TResult noData(), required TResult nothing(), required TResult login(List<String> msg, String data, String codeName), required TResult warningError(int code, List<String> msg, String data), required TResult crashError(int code, dynamic msg, String data)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult serverError(int code, List<String> msg, String data)?, TResult networkError()?, TResult unknownError(int code, String msg, String data)?, TResult noData()?, TResult nothing()?, TResult login(List<String> msg, String data, String codeName)?, TResult warningError(int code, List<String> msg, String data)?, TResult crashError(int code, dynamic msg, String data)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited