Storybook constructor

Storybook({
  1. Key? key,
  2. required Iterable<Story> stories,
  3. Iterable<Plugin>? plugins,
  4. String? initialStory,
  5. TransitionBuilder wrapperBuilder = materialWrapper,
  6. bool showPanel = true,
  7. Layout initialLayout = Layout.auto,
})

Implementation

Storybook({
  super.key,
  required Iterable<Story> stories,
  Iterable<Plugin>? plugins,
  this.initialStory,
  this.wrapperBuilder = materialWrapper,
  this.showPanel = true,
  Layout initialLayout = Layout.auto,
})  : plugins = UnmodifiableListView([
        LayoutPlugin(initialLayout),
        const ContentsPlugin(),
        const KnobsPlugin(),
        const LoggingPlugin(),
        ...plugins ?? _defaultPlugins,
      ]),
      stories = UnmodifiableListView(stories);