PaginationParams class Null safety

Pagination options.

Inheritance
Annotations

Constructors

PaginationParams({int limit = 10, int before = 10, int after = 10, int? offset, String? next, String? idAround, String? greaterThan, String? greaterThanOrEqual, String? lessThan, String? lessThanOrEqual})
Creates a new PaginationParams instance [...]
const
PaginationParams.fromJson(Map<String, dynamic> json)
Create a new instance from a json
factory

Properties

after int
The amount of items requested after message ID from the APIs.
final
before int
The amount of items requested before message ID from the APIs.
final
greaterThan String?
Filter on ids greater than the given value.
@JsonKey(name: 'id_gt'), final
greaterThanOrEqual String?
Filter on ids greater than or equal to the given value.
@JsonKey(name: 'id_gte'), final
hashCode int
The hash code for this object. [...]
read-only, inherited
idAround String?
Message ID to fetch messages around
@JsonKey(name: 'id_around'), final
lessThan String?
Filter on ids smaller than the given value.
@JsonKey(name: 'id_lt'), final
lessThanOrEqual String?
Filter on ids smaller than or equal to the given value.
@JsonKey(name: 'id_lte'), 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.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, inherited

Methods

copyWith({int? limit, int? before, int? after, int? offset, String? idAround, String? next, String? greaterThan, String? greaterThanOrEqual, String? lessThan, String? lessThanOrEqual}) PaginationParams
Creates a copy of PaginationParams with specified attributes overridden.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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