PaginationParams class

Pagination options.

Annotations
  • @JsonSerializable(includeIfNull: false)

Constructors

PaginationParams({int limit = 10, int? offset, String? next, String? idAround, String? greaterThan, String? greaterThanOrEqual, String? lessThan, String? lessThanOrEqual, DateTime? createdAtAfterOrEqual, DateTime? createdAtAfter, DateTime? createdAtBeforeOrEqual, DateTime? createdAtBefore, DateTime? createdAtAround})
Creates a new PaginationParams instance
const
PaginationParams.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

createdAtAfter DateTime?
Filter on createdAt greater than the given value.
final
createdAtAfterOrEqual DateTime?
Filter on createdAt greater than or equal the given value.
final
createdAtAround DateTime?
Filter on createdAt around the given value.
final
createdAtBefore DateTime?
Filter on createdAt smaller than the given value.
final
createdAtBeforeOrEqual DateTime?
Filter on createdAt smaller than or equal the given value.
final
greaterThan String?
Filter on ids greater than the given value.
final
greaterThanOrEqual String?
Filter on ids greater than or equal to the given value.
final
hashCode int
The hash code for this object.
no setterinherited
idAround String?
Message ID to fetch messages around
final
lessThan String?
Filter on ids smaller than the given value.
final
lessThanOrEqual String?
Filter on ids smaller than or equal to the given value.
final
limit int
The amount of items requested from the APIs.
final
next String?
A key used to paginate.
final
offset int?
The offset of requesting items.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({int? limit, int? before, int? after, int? offset, String? idAround, String? next, String? greaterThan, String? greaterThanOrEqual, String? lessThan, String? lessThanOrEqual, DateTime? createdAtAfterOrEqual, DateTime? createdAtAfter, DateTime? createdAtBeforeOrEqual, DateTime? createdAtBefore, DateTime? createdAtAround}) PaginationParams
Creates a copy of PaginationParams with specified attributes overridden.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serialize model to json
toString() String
A string representation of this object.
inherited

Operators

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