WidgetbookState constructor
WidgetbookState({
- String? path,
- String? query,
- bool previewMode = false,
- Map<
String, String> queryParams = const {}, - AppBuilder appBuilder = widgetsAppBuilder,
- List<
WidgetbookAddon> ? addons, - List<
WidgetbookIntegration> ? integrations, - required WidgetbookRoot root,
Implementation
WidgetbookState({
this.path,
this.query,
this.previewMode = false,
this.queryParams = const {},
this.appBuilder = widgetsAppBuilder,
this.addons,
this.integrations,
required this.root,
}) {
this.knobs = KnobsRegistry(
onLock: () {
integrations?.forEach(
(integration) => integration.onKnobsRegistered(this),
);
},
);
knobs.addListener(
notifyListeners,
);
}