fetch method

Future<bool> fetch()

Fetches and caches configuration from the Remote Config service.

Implementation

Future<bool> fetch() async {
  final fetch = _remoteConfig != null;
  if (fetch) {
    // Only if it's instantiated.
    await _remoteConfig?.fetch();
    // Always notify listeners after an explicit fetch
    notifyListeners();
  }
  return fetch;
}