ChannelMessageList constructor

ChannelMessageList({
  1. Iterable<ChannelMessage>? messages,
  2. String? nextCursor,
  3. String? prevCursor,
  4. String? cacheableCursor,
})

Implementation

factory ChannelMessageList({
  $core.Iterable<ChannelMessage>? messages,
  $core.String? nextCursor,
  $core.String? prevCursor,
  $core.String? cacheableCursor,
}) {
  final _result = create();
  if (messages != null) {
    _result.messages.addAll(messages);
  }
  if (nextCursor != null) {
    _result.nextCursor = nextCursor;
  }
  if (prevCursor != null) {
    _result.prevCursor = prevCursor;
  }
  if (cacheableCursor != null) {
    _result.cacheableCursor = cacheableCursor;
  }
  return _result;
}