flutter_stories library Null safety


Widget that allows you to use stories mechanism in your apps [...]


MomentDurationGetter = Duration Function(int? index)
Callback function that accepts the index of moment and returns its' Duration
ProgressSegmentBuilder = Widget Function(BuildContext context, int index, double progress, double gap)
Builder function that accepts current build context, moment index, moment progress and gap between each segment and returns widget for segment