copyWith method
WasmFeatures
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,
Returns a new instance by overriding the values passed as arguments
Implementation
WasmFeatures 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(
mutableGlobal: mutableGlobal ?? this.mutableGlobal,
saturatingFloatToInt:
saturatingFloatToInt ?? this.saturatingFloatToInt,
signExtension: signExtension ?? this.signExtension,
referenceTypes: referenceTypes ?? this.referenceTypes,
multiValue: multiValue ?? this.multiValue,
bulkMemory: bulkMemory ?? this.bulkMemory,
simd: simd ?? this.simd,
relaxedSimd: relaxedSimd ?? this.relaxedSimd,
threads: threads ?? this.threads,
tailCall: tailCall ?? this.tailCall,
floats: floats ?? this.floats,
multiMemory: multiMemory ?? this.multiMemory,
exceptions: exceptions ?? this.exceptions,
memory64: memory64 ?? this.memory64,
extendedConst: extendedConst ?? this.extendedConst,
componentModel: componentModel ?? this.componentModel,
functionReferences: functionReferences ?? this.functionReferences,
memoryControl: memoryControl ?? this.memoryControl,
gc: gc ?? this.gc);