storyBuilder property

StoryBuilder storyBuilder
final

The builder function that will be called to build a Story.

This function can be async to provide lazy loading.


Story builder returns a Story, which is: Group of image, video or custom story contents. A story may include one or more contents.

Story class keeps the default header and footer of a story and a generator function to creating it's contents. contentBuilder function called when story contents skipped by tapping left/right sides of the screen.

contentBuilder function can be called multiple times while skipping story content. Make sure this function is pure, return only story content from this function and don't take any extra action.

contentCount - 1 is the largest number passed as parameter to the contentBuilder function.

Implementation

final StoryBuilder storyBuilder;