getRegistry function

ProtocolRegistryModel getRegistry()

Gives the corresponding registry of the platform. Supports Windows and MacOS.

Implementation

ProtocolRegistryModel getRegistry() {
  if (Platform.isLinux) return LinuxProtocolRegistry();
  if (Platform.isWindows) return WindowsProtocolRegistry();

  throw UnsupportedError('Unsupported Platform');
}