fetch method

  1. @Deprecated('Pass the listener to fetchPrevious instead: ' 'fetchPrevious(listener: myMessageFetchListener). ' 'The two-phase read now lives on the standard fetch methods.')
Future<void> fetch({
  1. required MessageFetchListener listener,
})

Two-phase (offline-aware) message read — additive, non-breaking. The legacy fetchNext is unchanged. With offline enabled and every active filter locally computable, a cache result is delivered first, then the authoritative server result (persisted into the cache). With offline off, only the server phase fires (onServerMessages == the old onSuccess).

Implementation

@Deprecated(
  'Pass the listener to fetchPrevious instead: '
  'fetchPrevious(listener: myMessageFetchListener). '
  'The two-phase read now lives on the standard fetch methods.',
)
Future<void> fetch({required MessageFetchListener listener}) =>
    fetchPrevious(listener: listener);