APIError class

Constructors

APIError.invalidApiKey()
const
factory
APIError.noInternetConnection()
const
factory
APIError.notFound()
const
factory
APIError.unknown()
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 invalidApiKey(_InvalidApiKey value), required TResult noInternetConnection(_NoInternetConnection value), required TResult notFound(_NotFound value), required TResult unknown(_Unknown value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult invalidApiKey(_InvalidApiKey value)?, TResult noInternetConnection(_NoInternetConnection value)?, TResult notFound(_NotFound value)?, TResult unknown(_Unknown value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult invalidApiKey(_InvalidApiKey value)?, TResult noInternetConnection(_NoInternetConnection value)?, TResult notFound(_NotFound value)?, TResult unknown(_Unknown value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult invalidApiKey()?, TResult noInternetConnection()?, TResult notFound()?, TResult unknown()?, 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 invalidApiKey(), required TResult noInternetConnection(), required TResult notFound(), required TResult unknown()}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult invalidApiKey()?, TResult noInternetConnection()?, TResult notFound()?, TResult unknown()?}) → TResult?
inherited

Operators

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