OnPageChanged typedef

OnPageChanged = dynamic Function(dynamic int)

A StatefulWidget that displays a series of story items with a customizable progress indicator and user-defined callback functions for navigation and completion events.

The FlutterStoryView takes a list of StoryItem objects, and displays them one at a time, advancing to the next item after a specified duration.

The widget also provides a set of callback functions that can be used to handle user interactions, such as tapping on the screen to pause, resume, or navigate between story items.

The onComplete callback is triggered when all items have been displayed, while the onPageChanged callback is triggered every time the currently displayed item changes. OnPageChanged is called when a story item changes

Implementation

/// [OnPageChanged] is called when a story item changes
typedef OnPageChanged(int);