nextPatch method

Future<Patch?> nextPatch()

Returns the most recently downloaded patch (which may not be applied yet — see UpdateStatus.restartRequired), or null if none has been downloaded.

Implementation

Future<Patch?> nextPatch() {
  if (!isAvailable) return Future.value(null);
  return _updater.readNextPatch();
}