WasmFeatures class
Constructors
WasmFeatures ({required bool mutableGlobal , required bool saturatingFloatToInt , required bool signExtension , required bool referenceTypes , required bool multiValue , required bool bulkMemory , required bool simd , required bool relaxedSimd , required bool threads , required bool tailCall , required bool floats , required bool multiMemory , required bool exceptions , required bool memory64 , required bool extendedConst , required bool componentModel , required bool functionReferences , required bool memoryControl , required bool gc })
const
WasmFeatures.fromJson (Object ? json_ )
Returns a new instance from a JSON value.
May throw if the value does not have the expected structure.
factory
Properties
bulkMemory
→ bool
The WebAssembly bulk memory operations proposal (enabled by default)
final
componentModel
→ bool
The WebAssembly component model proposal.
final
exceptions
→ bool
The WebAssembly exception handling proposal
final
extendedConst
→ bool
The WebAssembly extended_const proposal
final
floats
→ bool
Whether or not floating-point instructions are enabled.
This is enabled by default can be used to disallow floating-point operators and types.
This does not correspond to a WebAssembly proposal but is instead intended for embeddings which have
stricter-than-usual requirements about execution. Floats in WebAssembly can have different NaN patterns
across hosts which can lead to host-dependent execution which some runtimes may not desire.
final
functionReferences
→ bool
The WebAssembly typed function references proposal
final
gc
→ bool
The WebAssembly gc proposal
final
hashCode
→ int
The hash code for this object.
no setter override
memory64
→ bool
The WebAssembly memory64 proposal
final
memoryControl
→ bool
The WebAssembly memory control proposal
final
multiMemory
→ bool
The WebAssembly multi memory proposal
final
multiValue
→ bool
The WebAssembly multi-value proposal (enabled by default)
final
mutableGlobal
→ bool
The WebAssembly mutable-global proposal (enabled by default)
final
referenceTypes
→ bool
The WebAssembly reference types proposal (enabled by default)
final
relaxedSimd
→ bool
The WebAssembly Relaxed SIMD proposal
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
saturatingFloatToInt
→ bool
The WebAssembly nontrapping-float-to-int-conversions proposal (enabled by default)
final
signExtension
→ bool
The WebAssembly sign-extension-ops proposal (enabled by default)
final
simd
→ bool
The WebAssembly SIMD proposal (enabled by default)
final
tailCall
→ bool
The WebAssembly tail-call proposal
final
threads
→ bool
The WebAssembly threads proposal
final
Methods
copyWith ({bool ? mutableGlobal , bool ? saturatingFloatToInt , bool ? signExtension , bool ? referenceTypes , bool ? multiValue , bool ? bulkMemory , bool ? simd , bool ? relaxedSimd , bool ? threads , bool ? tailCall , bool ? floats , bool ? multiMemory , bool ? exceptions , bool ? memory64 , bool ? extendedConst , bool ? componentModel , bool ? functionReferences , bool ? memoryControl , bool ? gc })
→ WasmFeatures
Returns a new instance by overriding the values passed as arguments
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson ()
→ Map <String , Object ? >
Returns a JSON representation of this.
toString ()
→ String
A string representation of this object.
override
toWasm ()
→ List <Object ? >
Returns this as a WASM canonical abi value.