endDraw method

void endDraw()

结束绘制

Implementation

void endDraw() {
  _startPoint = null;
  final int hisLen = _history.length;

  if (hisLen > _currentIndex) {
    _history.removeRange(_currentIndex, hisLen);
  }

  if (currentContent != null) {
    _history.add(currentContent!);
    _currentIndex = _history.length;
    currentContent = null;
  }

  _refresh();
  _refreshDeep();
  notifyListeners();
}