copyWithValue method

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

Copy this object with a new value.

Implementation

@override
KnobNodeBase<Option<T>> copyWithValue({
  Option<T>? value,
}) {
  return KnobNodeOptions(
    key: key,
    description: description,
    value: value ?? this.value,
    options: options,
  );
}