INNER CODE UNIT · Dart
StoryImageState
blackmann/story_view · lib/widgets/story_image.dart:112
class StoryImageState extends State<StoryImage> {
ui.Image? currentFrame;
Timer? _timer;
StreamSubscription<PlaybackState>? _streamSubscription;
@override
void initState() {
super.initState();
if (widget.controller != null) {
this._streamSubscription =
widget.controller!.playbackNotifier.listen((playbackState) {
// for the case of gifs we need to pause/play
if (widget.imageLoader.frames == null) {
return;
}