copyWith method

CursorTheme copyWith({
  1. SystemMouseCursor? selectionCursor,
  2. SystemMouseCursor? dragCursor,
  3. SystemMouseCursor? nodeCursor,
  4. SystemMouseCursor? portCursor,
})

Creates a copy of this theme with the given fields replaced.

Implementation

CursorTheme copyWith({
  SystemMouseCursor? selectionCursor,
  SystemMouseCursor? dragCursor,
  SystemMouseCursor? nodeCursor,
  SystemMouseCursor? portCursor,
}) {
  return CursorTheme(
    selectionCursor: selectionCursor ?? this.selectionCursor,
    dragCursor: dragCursor ?? this.dragCursor,
    nodeCursor: nodeCursor ?? this.nodeCursor,
    portCursor: portCursor ?? this.portCursor,
  );
}