AddonConfig<T> constructor
const
AddonConfig<T> (
- String key,
- T value
Creates a new AddonConfig using a key and a value.
Given the following Widgetbook URL:
/?text-scale={factor:2.0}
Then this would be:
const AddonConfig('text-scale', 'factor:2.0');
You can use other pre-defined entries for first-class addons that are provided by Widgetbook.
Implementation
const AddonConfig(this.key, this.value);