copyWith method

ComponentAdapter copyWith({
  1. String? name,
  2. WasmInput? wasm,
})

Returns a new instance by overriding the values passed as arguments

Implementation

ComponentAdapter copyWith({String? name, WasmInput? wasm}) =>
    ComponentAdapter(name: name ?? this.name, wasm: wasm ?? this.wasm);