currentRaylibPlatform top-level property

RaylibPlatform get currentRaylibPlatform

The Raylib platform selected at compile time.

Implementation

RaylibPlatform get currentRaylibPlatform {
  if (Platform.isAndroid) return .android;
  if (Platform.isLinux) return .linux;
  if (Platform.isMacOS) return .macOS;
  if (Platform.isIOS) return .iOS;
  if (Platform.isWindows) return .windows;
  if (Platform.isFuchsia) return .fuchsia;
  throw UnsupportedError('No Raylib platform implementation available for ${Platform.operatingSystem} platform');
}