nativeInstallRecovery property

  1. @override
NativeInstallRecovery get nativeInstallRecovery
override

Typed native recovery capability for this platform.

Implementation

@override
NativeInstallRecovery get nativeInstallRecovery {
  return switch (defaultTargetPlatform) {
    TargetPlatform.windows => AtomicAfterExitNativeInstallRecovery(
        query: queryInstallTransaction,
        resolveAfterExit: resolvePendingInstallTransactionAfterExit,
      ),
    TargetPlatform.macOS ||
    TargetPlatform.linux =>
      QueryAndRecoverNativeInstallRecovery(
        query: queryInstallTransaction,
        recover: recoverPendingInstallTransaction,
      ),
    _ => QueryAndRecoverNativeInstallRecovery(
        query: queryInstallTransaction,
        recover: recoverPendingInstallTransaction,
      ),
  };
}