stop method

dynamic stop({
  1. bool canceled = true,
})

Implementation

stop({bool canceled = true}) {
  assert(isEnable);
  danmuItems.clear();
  progress = startTime;
  _lastElapsedDuration = null;
  _checkStatusChanged();
  _ticker!.stop(canceled: canceled);
  _status = DanmuStatus.stop;
}