getVersion static method

Future<Version?> getVersion({
  1. required String bundleId,
  2. required String country,
})

Returns the new version.

Implementation

static Future<Version?> getVersion({
  required String bundleId,
  required String country,
}) async {
  final url = _getUrl(bundleId: bundleId, country: country);
  final response = await _client.get(url);
  return response.getVersion();
}