detect static method

NeomagePlatform detect()

Detect the current platform, mapping non-Darwin/Windows to linux.

Implementation

static NeomagePlatform detect() {
  if (Platform.isMacOS) return NeomagePlatform.darwin;
  if (Platform.isWindows) return NeomagePlatform.win32;
  return NeomagePlatform.linux;
}