Response<T> class

Constructors

Response()
Response.create(bool isSuccess, {String? errorMessage, T? value})
Response.error(String? _errorMessage)
Response.fromResponse(Response response)
Response.success(T? value)

Properties

errorMessage String
no setter
hashCode int
The hash code for this object.
no setterinherited
isSuccess bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value ↔ T?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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