fetch abstract method

Future<void> fetch({
  1. Duration expiration = const Duration(hours: 5),
  2. bool force = false,
})

Fetches configuration data from a remote server.

expiration is the cache expiration time. Default is 5 hours. If force is true, it ignores the cache and fetches directly from the server.

Implementation

Future<void> fetch({
  Duration expiration = const Duration(hours: 5),
  bool force = false,
});