Platformer class
Stub implementation used when no platform-specific backend is available.
This class acts as the default fallback when the package cannot access
actual platform information. Typical scenarios include:
• Web builds where dart:io is not allowed
• Any build that resolves to the stub through conditional imports
In this stub implementation, all getters always return false.
Real platform detection is provided by the dedicated implementations:
• platformer_io.dart (Android, iOS, Windows, Linux, macOS)
• platformer_web.dart (Browser)
Always import the package entrypoint: import 'package:platformers/platformers.dart';
Do not rely on this file directly.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isAndroid → bool
-
Indicates whether the runtime is Android (IO implementation only).
no setter
- isIOS → bool
-
Indicates whether the runtime is iOS (IO implementation only).
no setter
- isLinux → bool
-
Indicates whether the runtime is Linux desktop (IO implementation only).
no setter
- isMacOS → bool
-
Indicates whether the runtime is macOS desktop (IO implementation only).
no setter
- isWeb → bool
-
Indicates whether the code is running in a Web environment.
no setter
- isWindows → bool
-
Indicates whether the runtime is Windows desktop (IO implementation only).
no setter