play method

Stream<String> play()

Start or resume the animation

Implementation

Stream<String> play() {
  if (_isPlaying && !_isPaused) {
    throw StateError('Animation is already playing');
  }

  _isPlaying = true;
  _isPaused = false;

  return _animatedQR.start();
}