CapabilityOverrides class
Test-only overrides consulted before real platform detection.
Install via setCapabilityOverridesForTesting (re-exported by
package:wasmforge/testing.dart); null fields defer to real detection.
Constructors
- CapabilityOverrides({bool? isWeb, bool? crossOriginIsolated, bool? wasmGc})
-
Creates a set of overrides; any field left
nullkeeps real detection.const
Properties
- crossOriginIsolated → bool?
-
Forced value for isCrossOriginIsolated, or
nullto detect.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isWeb → bool?
-
Forced value for isWeb, or
nullto detect.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wasmGc → bool?
-
Forced value for supportsWasmGc, or
nullto detect.final
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