checkShorebirdPatch method

Future<void> checkShorebirdPatch({
  1. UpdateTrackType track = UpdateTrackType.stable,
})

Implementation

Future<void> checkShorebirdPatch(
    {UpdateTrackType track = UpdateTrackType.stable}) async {
  if (!enableShorebird ||
      _shorebirdService == null ||
      !_shorebirdService!.isAvailable) {
    await _handleShorebirdStatusChange(
        status: ShorebirdUpdateStatus.unavailable);
    return;
  }

  await _shorebirdService!.checkForUpdate(
    track: track.toShorebirdUpdateTrack(),
    onStatusChange: _handleShorebirdStatusChange,
  );
}