copyWith method

WasmFeatures copyWith({
  1. bool? mutableGlobal,
  2. bool? saturatingFloatToInt,
  3. bool? signExtension,
  4. bool? referenceTypes,
  5. bool? multiValue,
  6. bool? bulkMemory,
  7. bool? simd,
  8. bool? relaxedSimd,
  9. bool? threads,
  10. bool? tailCall,
  11. bool? floats,
  12. bool? multiMemory,
  13. bool? exceptions,
  14. bool? memory64,
  15. bool? extendedConst,
  16. bool? componentModel,
  17. bool? functionReferences,
  18. bool? memoryControl,
  19. 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);