title: How to get current index of Story view in flutter
body: <p>Im using list of images in story view in flutter, i want to get index of the list which is being displayed on the screen.
  This is my code</p>
  <pre><code>StoryView(
              storyItems: images
                  .map((e) =&gt; StoryItem.pageImage(
                        url: e,
                        // caption: &quot;&quot;,
                        controller: newController,
                      ))
                  .toList(),
              onStoryShow: (s) {},
              onComplete: () {
                print(&quot;Completed a cycle&quot;);
                Navigator.pop(context);
              },
              onVerticalSwipeComplete: (direction) {
                if (direction == Direction.down) {
                  Navigator.pop(context);
                }
              },
              progressPosition: ProgressPosition.top,
              repeat: false,
              controller: storyController,
            ),
  </code></pre>