copyWithValue method

  1. @override
KnobNodeBase<String> copyWithValue({
  1. String? value,
})
override

Copy this object with a new value.

Implementation

@override
KnobNodeBase<String> copyWithValue({String? value}) {
  return KnobNodeText(
    key: key,
    description: description,
    value: value ?? this.value,
  );
}