AdvStory constructor

const AdvStory({
  1. required int storyCount,
  2. required StoryBuilder storyBuilder,
  3. required TrayBuilder? trayBuilder,
  4. AdvStoryController? controller,
  5. bool buildStoryOnTrayScroll = true,
  6. bool preloadStory = true,
  7. bool preloadContent = true,
  8. AdvStoryStyle style = const AdvStoryStyle(),
  9. Key? key,
})

Creates a story tray list using trayBuilder. When a tray tapped calls storyBuilder and starts story flow.


controller : A controller for manipulating flow and listening user interactions.

Provides methods to skip, pause, resume contents and stories, show and hide widgets on story contents, enable or disable gestures, capture and block events before they happen and more.

Implementation

const AdvStory({
  required this.storyCount,
  required this.storyBuilder,
  required this.trayBuilder,
  AdvStoryController? controller,
  this.buildStoryOnTrayScroll = true,
  this.preloadStory = true,
  this.preloadContent = true,
  this.style = const AdvStoryStyle(),
  Key? key,
})  : storyController = controller,
      hasTrays = true,
      super(key: key);