platformer library
Entry point for the platformers package.
This file exposes a single Platformer class, whose implementation is
selected at compile time using conditional exports:
• Stub implementation
→ used when neither dart:io nor dart:html is available
• IO implementation
→ selected when dart:io is supported
(Android, iOS, Windows, Linux, macOS, CLI)
• Web implementation
→ selected when dart:html is available
(Browser builds)
Consumers should always import this file:
import 'package:platformers/platformers.dart';
if (Platformer.isWeb) { ... }
if (Platformer.isAndroid) { ... }
The actual implementation behind Platformer is transparently handled by
Dart's conditional import system.
No caller should import the platform-specific files directly.
Classes
- Platformer
- Stub implementation used when no platform-specific backend is available.