KnobConfig<T> constructor
const
KnobConfig<T> (
- String label,
- T value
Creates a new KnobConfig using a label and a value.
Given the following Widgetbook URL:
/?knobs={size:2,color:blue,disabled:true}
Then this would be:
const KnobConfig('size', 2);
const KnobConfig('color', 'blue');
const KnobConfig('enabled', false);
Implementation
const KnobConfig(this.label, this.value);