getPlatform method

SupportedPlatform getPlatform()

Implementation

SupportedPlatform getPlatform() {
  if (Platform.isAndroid) return SupportedPlatform.android;
  if (Platform.isIOS) return SupportedPlatform.ios;
  if (Platform.isLinux) return SupportedPlatform.linux;
  if (Platform.isWindows) return SupportedPlatform.windows;
  if (Platform.isMacOS) return SupportedPlatform.macos;
  return SupportedPlatform.unknown;
}