list method

FutureOr<List<Record<ISunnyContact>>> list({
  1. bool? forceRefresh,
  2. double? offset,
  3. double? limit,
})
inherited

Lists the available data for this store. If subsequent calls are made, they will resolve to the same future.

Implementation

FutureOr<List<Record<V>>> list({
  /// Whether to force data to load, even if it's already been fetched.  If you want to nuke all the data and refetch,
  /// you need to call [clear], followed by [list]
  bool? forceRefresh,
  double? offset,
  double? limit,
}) {
  final nextLoad = _reloadCompletions.stream.first;
  if (forceRefresh == true || !_values.isFirstResolved) {
    log.info("$type fetch started");
    _reloadRequests.add(true);
    return nextLoad.then((_) {
      return _;
    });
  }
  return values;
}