skipCurrentUpdate method

Future<void> skipCurrentUpdate()

Marks the currently offered soft update as skipped.

Future checks (until the version changes or the skip is cleared) will report PrismUpdateSkipped instead of PrismUpdateAvailable.

Implementation

Future<void> skipCurrentUpdate() async {
  final state = _state;
  if (state is! PrismUpdateAvailable || state.isForced) return;
  final latest = state.latest;
  if (latest == null) return;
  await _skipStore?.skip(latest);
  _set(PrismUpdateSkipped(available: state));
}