watchAll method
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.
ref.books.watchAll();
Implementation
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);
}