clear method

void clear()

Deletes all drawing actions, but does not affect the background. If the picture is already finished, this is a no-op and does nothing.

Implementation

void clear() {
  if (!isFinished()) {
    _pathHistory.clear();
    notifyListeners();
  }
}