placesFetchProvider top-level property

AutoDisposeProvider<Future<List<Place>?>> placesFetchProvider
final

Implementation

final placesFetchProvider =
    Provider.autoDispose<Future<List<Place>?>>((ref) async {
  final _query = ref.watch(queryProvider).state;
  final _networkServiceProvier = ref.watch(networkServiceProvider(_query));
  final _places = await _networkServiceProvier.fetchMatchingPlaces();
  return _places;
});