drawing method

void drawing(
  1. Offset nowPaint
)

Updates the current drawing stroke with a new point.

Implementation

void drawing(Offset nowPaint) {
  if (_history[_currentPage]?.isNotEmpty == true) {
    _history[_currentPage]!.last.update(nowPaint);
    notifyListeners();
  }
}