put method

Future<void> put(
  1. DtoChatItem item, {
  2. bool ignoreBounds = false,
})

Adds the provided item to the Paginations.

Implementation

Future<void> put(DtoChatItem item, {bool ignoreBounds = false}) async {
  Log.debug('put($item)', '$runtimeType($id)');

  await _pagination?.put(item, ignoreBounds: ignoreBounds);
  for (var e in fragments) {
    await e.pagination?.put(item, ignoreBounds: ignoreBounds);
  }

  for (var e in _attachments) {
    await e.pagination?.put(item, ignoreBounds: ignoreBounds);
  }
}