updatePlayState method

void updatePlayState()
inherited

Implementation

void updatePlayState() {
  if (isPlaying && attached) {
    markNeedsPaint();
  } else {
    _lastFrameTime = _notPlayingFlag;
    if (_frameCallbackID != -1) {
      SchedulerBinding.instance?.cancelFrameCallbackWithId(_frameCallbackID);
    }
  }
}