getVersion static method

Future<Version?> getVersion({
  1. required String from,
})

Returns the new version.

Implementation

static Future<Version?> getVersion({
  required String from,
}) async {
  final url =
      Uri.parse('https://play.google.com/store/apps/details?id=$from&hl=en');
  final response = await client.get(url);
  return response.body.getVersion();
}