currentPlatform property

SupportedPlatform get currentPlatform

Detects the current platform

Implementation

static SupportedPlatform get currentPlatform {
  if (kIsWeb) return SupportedPlatform.web;

  if (VPlatforms.isAndroid) return SupportedPlatform.android;
  if (VPlatforms.isIOS) return SupportedPlatform.ios;
  if (VPlatforms.isWindows) return SupportedPlatform.windows;
  if (VPlatforms.isMacOs) return SupportedPlatform.macos;
  if (VPlatforms.isLinux) return SupportedPlatform.linux;

  return SupportedPlatform.unknown;
}