Response<T> class

Constructors

Response({T? data, List<T>? result, String message = '', String error = '', bool isCancel = false, bool isLoading = false, bool isSuccessful = false, bool isFailed = false, dynamic snapshot, Status status = Status.noContent, String tag = ""})
const

Properties

data → T?
final
error String
final
hashCode int
The hash code for this object.
no setterinherited
isCancel bool
final
isFailed bool
final
isLoading bool
final
isSuccessful bool
final
message String
final
result List<T>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
no setter
snapshot → dynamic
final
status Status
final
statusCode → dynamic
no setter
tag String
final

Methods

copy({bool? isCancel, bool? isSuccessful, bool? isLoading, bool? isFailed, T? data, List<T>? result, String? message, String? error, dynamic snapshot, Status? status, String? tag}) Response<T>
getSnapshot<Snapshot>() → Snapshot?
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