fetchNewsForCurrentBoundsImpl method

Future<void> fetchNewsForCurrentBoundsImpl()

Fetches news for current map bounds.

Implementation

Future<void> fetchNewsForCurrentBoundsImpl() async {
  if (!mounted) return;
  await fetchNewsForBounds(
    context: context,
    mapController: mapController,
    newsService: newsService,
    updateState: (m, l) {
      if (mounted) {
        setState(() {
          newsMarkers = m;
          isLoadingNews = l;
        });
      }
    },
  );
}