copyWith method

  1. @override
NodeFlowTheme copyWith({
  1. NodeTheme? nodeTheme,
  2. ConnectionTheme? connectionTheme,
  3. ConnectionTheme? temporaryConnectionTheme,
  4. Duration? connectionAnimationDuration,
  5. PortTheme? portTheme,
  6. LabelTheme? labelTheme,
  7. Color? backgroundColor,
  8. Color? gridColor,
  9. double? gridSize,
  10. double? gridThickness,
  11. GridStyle? gridStyle,
  12. Color? selectionColor,
  13. Color? selectionBorderColor,
  14. double? selectionBorderWidth,
  15. SystemMouseCursor? cursorStyle,
  16. SystemMouseCursor? dragCursorStyle,
  17. SystemMouseCursor? nodeCursorStyle,
  18. SystemMouseCursor? portCursorStyle,
  19. bool? debugMode,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
NodeFlowTheme copyWith({
  NodeTheme? nodeTheme,
  ConnectionTheme? connectionTheme,
  ConnectionTheme? temporaryConnectionTheme,
  Duration? connectionAnimationDuration,
  PortTheme? portTheme,
  LabelTheme? labelTheme,
  Color? backgroundColor,
  Color? gridColor,
  double? gridSize,
  double? gridThickness,
  GridStyle? gridStyle,
  Color? selectionColor,
  Color? selectionBorderColor,
  double? selectionBorderWidth,
  SystemMouseCursor? cursorStyle,
  SystemMouseCursor? dragCursorStyle,
  SystemMouseCursor? nodeCursorStyle,
  SystemMouseCursor? portCursorStyle,
  bool? debugMode,
}) {
  return NodeFlowTheme(
    nodeTheme: nodeTheme ?? this.nodeTheme,
    connectionTheme: connectionTheme ?? this.connectionTheme,
    temporaryConnectionTheme:
        temporaryConnectionTheme ?? this.temporaryConnectionTheme,
    connectionAnimationDuration:
        connectionAnimationDuration ?? this.connectionAnimationDuration,
    portTheme: portTheme ?? this.portTheme,
    labelTheme: labelTheme ?? this.labelTheme,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    gridColor: gridColor ?? this.gridColor,
    gridSize: gridSize ?? this.gridSize,
    gridThickness: gridThickness ?? this.gridThickness,
    gridStyle: gridStyle ?? this.gridStyle,
    selectionColor: selectionColor ?? this.selectionColor,
    selectionBorderColor: selectionBorderColor ?? this.selectionBorderColor,
    selectionBorderWidth: selectionBorderWidth ?? this.selectionBorderWidth,
    cursorStyle: cursorStyle ?? this.cursorStyle,
    dragCursorStyle: dragCursorStyle ?? this.dragCursorStyle,
    nodeCursorStyle: nodeCursorStyle ?? this.nodeCursorStyle,
    portCursorStyle: portCursorStyle ?? this.portCursorStyle,
    debugMode: debugMode ?? this.debugMode,
  );
}