ChatCursorResult<T> class
带游标及分页获取结果的泛型类。 做为分页获取且含有游标的返回对象。
示例代码如下:
String? cursor;
ChatCursorResult<ChatGroup> result = await ChatClient.getInstance.groupManager.getPublicGroupsFromServer(pageSize: 10, cursor: cursor);
List<ChatGroup>? group = result.data;
cursor = result.cursor;
Constructors
-
ChatCursorResult(String? cursor, List<
T> data, {int? totalCount}) -
ChatCursorResult.fromJson(Map<
String, dynamic> map, {dynamic dataItemCallback = CursorResultCallback}) -
factory
Properties
- cursor → String?
-
获取游标。
final
-
data
→ List<
T> -
获取一页数据列表。
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalCount → int?
-
获取服务端结果总数。
final
Methods
-
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