copyWith method
NodeFlowTheme
copyWith({
- NodeTheme? nodeTheme,
- ConnectionTheme? connectionTheme,
- ConnectionTheme? temporaryConnectionTheme,
- Duration? connectionAnimationDuration,
- PortTheme? portTheme,
- LabelTheme? labelTheme,
- AnnotationTheme? annotationTheme,
- GridTheme? gridTheme,
- SelectionTheme? selectionTheme,
- CursorTheme? cursorTheme,
- Color? backgroundColor,
- 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,
AnnotationTheme? annotationTheme,
GridTheme? gridTheme,
SelectionTheme? selectionTheme,
CursorTheme? cursorTheme,
Color? backgroundColor,
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,
annotationTheme: annotationTheme ?? this.annotationTheme,
gridTheme: gridTheme ?? this.gridTheme,
selectionTheme: selectionTheme ?? this.selectionTheme,
cursorTheme: cursorTheme ?? this.cursorTheme,
backgroundColor: backgroundColor ?? this.backgroundColor,
debugMode: debugMode ?? this.debugMode,
);
}