StoryController class

Controller to sync playback between animated child (story) views. This helps make sure when stories are paused, the animation (gifs/slides) are also paused. Another reason for using the controller is to place the stories on paused state when a media is loading.

Constructors

StoryController()

Properties

hashCode int
The hash code for this object.
no setterinherited
playbackNotifier → BehaviorSubject<PlaybackState>
Stream that broadcasts the playback state of the stories.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
Remember to call dispose when the story screen is disposed to close the notifier stream.
next() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() → void
Notify listeners with a PlaybackState.pause state
play() → void
Notify listeners with a PlaybackState.play state
previous() → void
toString() String
A string representation of this object.
inherited

Operators

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