Storybook constructor

Storybook({
  1. Key? key,
  2. List<Story> children = const [],
  3. ThemeData? theme,
  4. ThemeData? darkTheme,
  5. ThemeMode themeMode = ThemeMode.system,
  6. List<LocalizationsDelegate>? localizationDelegates,
  7. StoryWrapperBuilder? storyWrapperBuilder,
  8. Iterable<Plugin>? plugins,
  9. String initialRoute = '/',
  10. List<NavigatorObserver> navigatorObservers = const <NavigatorObserver>[],
  11. 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);