platform property

  1. @override
RunPlatform get platform
override

the current platform

Implementation

@override
get platform {
  if (Platform.isAndroid) return RunPlatform.android;
  if (Platform.isIOS) return RunPlatform.ios;
  if (Platform.isMacOS) return RunPlatform.macos;
  if (Platform.isWindows) return RunPlatform.windows;
  if (Platform.isLinux) return RunPlatform.linux;
  if (Platform.isFuchsia) return RunPlatform.fuchsia;
  return RunPlatform.web;
}