EMCursorResult<T> class

~english The EMCursorResult 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;
  EMCursorResult<EMGroup> result = await EMClient.getInstance.groupManager.fetchPublicGroupsFromServer(pageSize: 10, cursor: cursor);
  List<EMGroup>? group = result.data;
  cursor = result.cursor;

~end

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

示例代码如下:

  String? cursor;
  EMCursorResult<EMGroup> result = await EMClient.getInstance.groupManager.getPublicGroupsFromServer(pageSize: 10, cursor: cursor);
  List<EMGroup>? group = result.data;
  cursor = result.cursor;

~end

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