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. AnnotationTheme? annotationTheme,
  8. GridTheme? gridTheme,
  9. SelectionTheme? selectionTheme,
  10. CursorTheme? cursorTheme,
  11. Color? backgroundColor,
  12. 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,
  );
}