copyWith method

EditorWidgetsState copyWith({
  1. CNode? focusedNode,
  2. List<CNode>? focusedNodes,
  3. CNode? hoveredNode,
  4. List<int>? xLines,
  5. List<int>? yLines,
  6. Map<String, Widget>? nodeControls,
  7. Widget? defaultNodeControls,
})

Implementation

EditorWidgetsState copyWith({
  final CNode? focusedNode,
  final List<CNode>? focusedNodes,
  final CNode? hoveredNode,
  final List<int>? xLines,
  final List<int>? yLines,
  final Map<String, Widget>? nodeControls,
  final Widget? defaultNodeControls,
}) {
  return EditorWidgetsState(
    focusedNode: focusedNode ?? this.focusedNode,
    focusedNodes: focusedNodes ?? this.focusedNodes,
    hoveredNode: hoveredNode ?? this.hoveredNode,
    xLines: xLines ?? this.xLines,
    yLines: yLines ?? this.yLines,
    nodeControls: nodeControls ?? this.nodeControls,
    defaultNodeControls: defaultNodeControls ?? this.defaultNodeControls,
  );
}