PlatformDetector class
Envoltorio para detectar la plataforma actual.
Permite mockear kIsWeb durante los tests.
Properties
-
debugInfo
→ Map<
String, dynamic> -
Información de debug sobre el estado actual
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNative → bool
-
Detecta si la aplicación se está ejecutando en plataforma nativa
no setter
- isWeb → bool
-
Detecta si la aplicación se está ejecutando en web
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearOverride(
) → void -
SOLO PARA TESTSLimpia cualquier override y vuelve al comportamiento real -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setNativeOverride(
) → void -
SOLO PARA TESTSOverride del valor como nativo -
setWebOverride(
bool isWeb) → void -
SOLO PARA TESTSOverride del valor de isWeb -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → PlatformDetector
-
Instancia singleton para el detector de plataforma
no setter
Static Methods
-
resetInstance(
) → void -
SOLO PARA TESTSReset completo de la instancia singleton