checkForUpdate static method
Has to be called before being able to start any update.
Returns AppUpdateInfo, which can be used to decide if startFlexibleUpdate or performImmediateUpdate should be called.
Implementation
static Future<AppUpdateInfo> checkForUpdate() async {
final result = await _channel.invokeMethod('checkForUpdate');
return AppUpdateInfo(
result['updateAvailability'],
result['immediateAllowed'],
result['flexibleAllowed'],
result['availableVersionCode'],
result['installStatus'],
result['packageName'],
result['clientVersionStalenessDays'],
result['updatePriority'],
);
}