currentPatch method

Future<Patch?> currentPatch()

Returns the currently installed patch, or null if the app is running the release build with no patch applied (or the updater is unavailable).

Implementation

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