registryKey method

String? registryKey(
  1. TomSecretsBrowser b
)

The Windows registry key naming the manifest, or null elsewhere.

Implementation

String? registryKey(TomSecretsBrowser b) => !_windows
    ? null
    : r'HKCU\Software\' +
          switch (b) {
            TomSecretsBrowser.chrome => r'Google\Chrome',
            TomSecretsBrowser.chromium => 'Chromium',
            TomSecretsBrowser.edge => r'Microsoft\Edge',
            TomSecretsBrowser.brave => r'BraveSoftware\Brave-Browser',
            TomSecretsBrowser.firefox => 'Mozilla',
          } +
          r'\NativeMessagingHosts\' +
          tomSecretsBrowserHostId;