Storybook constructor
Storybook({
- Key? key,
- List<
Story> children = const [], - ThemeData? theme,
- ThemeData? darkTheme,
- ThemeMode themeMode = ThemeMode.system,
- List<
LocalizationsDelegate> ? localizationDelegates, - StoryWrapperBuilder? storyWrapperBuilder,
- Iterable<
Plugin> ? plugins, - String initialRoute = '/',
- TransitionBuilder? builder,
Implementation
Storybook({
Key? key,
this.children = const [],
this.theme,
this.darkTheme,
this.themeMode = ThemeMode.system,
this.localizationDelegates,
this.storyWrapperBuilder,
Iterable<Plugin>? plugins,
this.initialRoute = '/',
this.navigatorObservers = const <NavigatorObserver>[],
this.builder,
}) : plugins = plugins ?? allPlugins,
super(key: key);