Skip to main content

getNewFeedAndRefreshCache method

[Future[<[List<[T>]]>]]

Fetches new data from the API if online, updates the cache, and returns the data.

If offline, loads and returns cached data.

params: None

returns:

  • Future<List<T>>: A Future containing a list of the latest data.

Implementation

Future<List<T>>  async 
  1. talawa
  2. base_feed_manager
  3. BaseFeedManager<[T>]
  4. getNewFeedAndRefreshCache method
BaseFeedManager class