setCursor method

  1. @override
void setCursor(
  1. PCanvasCursor cursor
)
override

Sets the PCanvas cursor.

  • Same as this.cursor = cursor.
  • See cursor.

Implementation

@override
void setCursor(PCanvasCursor cursor) {
  var prevCursor = getCursor();

  if (cursor != prevCursor) {
    var mouseCursor = cursor.mouseCursor;
    _mouseCursor = mouseCursor;
    _pCanvasWidget.rebuild();
  }
}