isUpdateAvailable method

Future<bool> isUpdateAvailable()

Implementation

Future<bool> isUpdateAvailable() async {
  await instance.fetchAndActivate();
  final latest = instance.getInt('latest_version_code');
  final current = int.parse((await PackageInfo.fromPlatform()).buildNumber);
  return latest > current;
}