copyWith method
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,
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,
);
}