EasyDevStoryController class abstract

A controller for manipulating flow and listening user interactions.

Constructors

EasyDevStoryController()
Creates an EasyDevStoryController.
factory

Properties

contentController → EasyDevContentPageController?
Active content PageView controller. This controller lets to skip next and previous content.
no setter
contentCount int
Total content count in currently displaying story.
no setter
contentIndex int
Currently displaying content index in the current story.
no setter
contentIndexes Map<int, int>
Map<storyIndex, contentIndex> used for saving index of current content in each story and displaying it when user goes to previous stories.
no setter
hasClient bool
Returns true if a story view is currently visible. Most methods like toNextContent, toPreviousStory can't be used and throws an exception if the story view is not visible.
no setter
hashCode int
The hash code for this object.
no setterinherited
isPaused bool
Returns true if the story is paused, false otherwise.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storyCount int
Total count of stories.
no setter
storyIndex int
Currently displaying story index.
no setter

Methods

addListener(void listener(StoryEvent event, StoryPosition position)) → void
Register a callback to be called when any story event happens.
jumpTo({required int story, required int content}) → void
Jumps to the content in story story.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Pauses the current story, this stops the timer and the story will not skip to the next item.
removeListener(void listener(StoryEvent event, StoryPosition position)) → void
Remove a previously registered closure from the list of callback that are notified when the events changes.
resume() → void
Resumes the current story, starts the timer and indicator from last position and story skips as usual.
toNextContent() → void
Skips to the next content if available. Otherwise skips to the next story or closes the story view.
toNextStory() → void
Skips to the next story if available. Otherwise closes the story view.
toPreviousContent() → void
Skips to previous content if available. Otherwise skips to the previous story or does nothing.
toPreviousStory() → void
Skips to the previous story if available. Otherwise does nothing.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited