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
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