fetchUpdates method

Future<bool> fetchUpdates({
  1. bool force = false,
})

Invokes _fetchBootstrapJs over PlatformUtilsImpl.isWeb and _fetchAppcast otherwise to check against any updates being available.

Implementation

Future<bool> fetchUpdates({bool force = false}) async {
  if (Config.appcast.isNotEmpty) {
    return await _fetchAppcast(force: force);
  } else if (PlatformUtils.isWeb) {
    return await _fetchBootstrapJs();
  }

  return false;
}