GdeltNewsService class

Service for fetching news from GDELT GeoJSON API with debouncing and caching.

Constructors

GdeltNewsService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCache() → void
Clear the cache manually.
dispose() → void
Cancel any pending debounced requests.
fetchNews({required LatLngBounds bounds, String query = 'news', int maxResults = 250, String timeSpan = '24h', bool forceRefresh = false}) Future<List<NewsMarker>>
Fetch news markers within the specified bounds with debouncing and caching.
getMarkersInBounds(LatLngBounds bounds) List<NewsMarker>
Filter cached markers for the given bounds without making API call.
isBoundsCovered(LatLngBounds bounds) bool
Check if the given bounds are mostly covered by cached data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited