watchAll method

DataState<List<T>?> watchAll(
  1. {bool? remote,
  2. Map<String, dynamic>? params,
  3. Map<String, String>? headers,
  4. bool? syncLocal,
  5. String? finder,
  6. DataRequestLabel? label}

Watches a provider wrapping Repository.watchAllNotifier which allows the watcher to be notified of changes on any model of this type.

Example: Watch all models of type books on a Riverpod hook-enabled app.



DataState<List<T>?> watchAll({
  bool? remote,
  Map<String, dynamic>? params,
  Map<String, String>? headers,
  bool? syncLocal,
  String? finder,
  DataRequestLabel? label,
}) {
  final provider = watchAllProvider(
    remote: remote,
    params: params,
    headers: headers,
    syncLocal: syncLocal,
    finder: finder,
    label: label,
  return remoteAdapter.internalWatch!(provider);