APIResponse<T> class

Wrapper class for and API response. Can hold the successful result or the error details

Constructors

APIResponse(Response<T>? response)

Properties

apiError APIError?
getter/setter pair
error What3WordsError?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
response ↔ Response<T>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

body() → T?
getAPIError() APIError?
isSuccessful() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setAPIError(APIError apiError) → void
setError(What3WordsError error) → void
toString() String
A string representation of this object.
inherited

Operators

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