getMessages function

Future<PagedResult<CubeMessage>?> getMessages(
  1. String dialogId, [
  2. Map<String, dynamic>? params
])

params - additional parameters for request. Use class-helper GetMessagesParameters to simple config request

Implementation

Future<PagedResult<CubeMessage>?> getMessages(String dialogId,
    [Map<String, dynamic>? params]) {
  return GetMessageQuery(dialogId, params).perform();
}