PaginationResponse<T extends Object> class

Represents a paginated response containing status, result, and snapshot.

Constructors

PaginationResponse.error()
Constructs a PaginationResponse instance with an error status.
PaginationResponse.invalid()
Constructs a PaginationResponse instance with an invalid status.
PaginationResponse.notFound()
Constructs a PaginationResponse instance with a not found status.
PaginationResponse.value({required List<T>? result, required Object? snapshot})
Constructs a PaginationResponse instance with a successful status and data.

Properties

backups List<T>
no setterinherited
beautify String
no setterinherited
data → T?
no setterinherited
error String
no setterinherited
feedback ↔ dynamic
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
ignores List<T>
no setterinherited
isAvailable bool
no setterinherited
isBackup bool
no setterinherited
isCancel bool
no setterinherited
isComplete bool
no setterinherited
isError bool
no setterinherited
isFailed bool
no setterinherited
isIgnored bool
no setterinherited
isInternetError bool
no setterinherited
isLoaded bool
no setterinherited
isLoading bool
no setterinherited
isMessage bool
no setterinherited
isNullable bool
no setterinherited
isPaused bool
no setterinherited
isStopped bool
no setterinherited
isSuccessful bool
no setterinherited
isTimeout bool
no setterinherited
isValid bool
no setterinherited
message String
no setterinherited
progress double
no setterinherited
requestCode int
finalinherited
result List<T>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapshot ↔ dynamic
getter/setter pairinherited
status → Status
no setterinherited

Methods

copy({int? requestCode, T? data, List<T>? backups, List<T>? ignores, List<T>? result, double? progress, Status? status, String? exception, String? message, dynamic feedback, dynamic snapshot}) → Response<T>
inherited
from(Response<T> response) → Response<T>
inherited
getSnapshot<Snapshot>() → Snapshot?
inherited
modify({T? data, List<T>? backups, List<T>? ignores, List<T>? result, double? progress, Status? status, String? exception, String? message, dynamic feedback, dynamic snapshot}) → Response<T>
inherited
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