enableWasmConverter property
Flag to enable WebAssembly type conversion for numerical values.
When an application is compiled to WebAssembly (WASM), JavaScript represents all
numeric types as IEEE-754 doubles. This causes integer types (int
, List<int>
,
Iterable<int>
, etc.) to be automatically converted to double
during serialization.
When this flag is set to true
, the isolate manager will automatically convert
numeric values back to their intended types during message passing. This ensures
type consistency between Dart and WASM/JavaScript environments.
Default is true
. Enable this when working with integer data in WASM environments.
Implementation
final bool enableWasmConverter;