EMCursorResult<T> class

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

示例代码如下:

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

Constructors

EMCursorResult.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.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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