play method
void
play()
Implementation
void play() {
if (_playing) {
return;
}
if (_replying) {
return;
}
if (!trusted!) {
return;
}
if (_slideInfo) {
return;
}
if (stories.isEmpty) {
return;
}
if (!_loadedStories.containsKey(currentStory.imageProvider)) {
return;
}
if (_uiHiding) {
_uiHiding = false;
_callFunctions(_onUIShows);
}
if (_prewShadowShowing) {
_prewShadowShowing = false;
_callFunctions(_onPrewShadowHides);
}
uiHider?.cancel();
prevShadower?.cancel();
_playing = true;
_callFunctions(_onPlays);
}