saveState method

PCanvasState saveState()

Saves the drawing state (PCanvasState).

Implementation

PCanvasState saveState() {
  var s = state;
  _stateStack.addLast(s);

  return s;
}