StoryView constructor

StoryView(
  1. List<StoryItem?> storyItems, {
  2. StoryController? controller,
  3. VoidCallback? onComplete,
  4. VoidCallback? goForward,
  5. ValueChanged<StoryItem>? onStoryShow,
  6. ProgressPosition progressPosition = ProgressPosition.top,
  7. bool repeat = false,
  8. bool inline = false,
})

Implementation

StoryView(
  this.storyItems, {
  this.controller,
  this.onComplete,
  this.goForward,
  this.onStoryShow,
  this.progressPosition = ProgressPosition.top,
  this.repeat = false,
  this.inline = false,
}) : assert(
          storyItems.length > 0, "[storyItems] should not be null or empty");