ChatCursorResult<T> class

~english The ChatCursorResult class, which specifies the cursor from which to query results. When querying using this class, the SDK returns the queried instance and the cursor.

  String? cursor;
  ChatCursorResult<ChatGroup> result = await ChatClient.getInstance.groupManager.fetchPublicGroupsFromServer(pageSize: 10, cursor: cursor);
  List<ChatGroup>? group = result.data;
  cursor = result.cursor;

~end

~chinese 带游标及分页获取结果的泛型类。 做为分页获取且含有游标的返回对象。

示例代码如下:

  String? cursor;
  ChatCursorResult<ChatGroup> result = await ChatClient.getInstance.groupManager.getPublicGroupsFromServer(pageSize: 10, cursor: cursor);
  List<ChatGroup>? group = result.data;
  cursor = result.cursor;

~end

Constructors

ChatCursorResult.fromJson(Map<String, dynamic> map, {dynamic dataItemCallback = CursorResultCallback})
factory

Properties

cursor String?
~english Gets the cursor. ~end
final
data List<T>
~english Gets the data list. ~end
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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