watchAll method

DataStateNotifier<List<T>> watchAll({
  1. bool? remote,
  2. Map<String, dynamic>? params,
  3. Map<String, String>? headers,
  4. bool? syncLocal,
  5. bool filterLocal(
    1. T
    )?,
})

Watches changes on all models of type T in local storage.

When called, will in turn call findAll with remote, params, headers, syncLocal.

If syncLocal is set to false but results still need to be filtered, use filterLocal. All data updates will be filtered through it.

Implementation

DataStateNotifier<List<T>> watchAll({
  bool? remote,
  Map<String, dynamic>? params,
  Map<String, String>? headers,
  bool? syncLocal,
  bool Function(T)? filterLocal,
}) {
  return remoteAdapter.watchAll(
    remote: remote,
    params: params,
    headers: headers,
    filterLocal: filterLocal,
    syncLocal: syncLocal,
  );
}