end method

dynamic end()

Implementation

end() {
  if (_state == PageTimerState.pause) {
    _state = PageTimerState.end;
    return;
  }

  if (_state == PageTimerState.start || _state == PageTimerState.resume) {
    _state = PageTimerState.end;
    _duration = Duration(milliseconds: _duration.inMilliseconds + _computeMilliseconds());
  }
}