copyWith method
Copy with.
Implementation
NmGraphNodeData copyWith({
String? id,
NmGraphNodeType? type,
String? label,
String? subtitle,
Offset? position,
Offset? velocity,
bool? isFixed,
bool? isSelected,
bool? isHighlighted,
Map<String, dynamic>? metadata,
}) {
return NmGraphNodeData(
id: id ?? this.id,
type: type ?? this.type,
label: label ?? this.label,
subtitle: subtitle ?? this.subtitle,
position: position ?? this.position,
velocity: velocity ?? this.velocity,
isFixed: isFixed ?? this.isFixed,
isSelected: isSelected ?? this.isSelected,
isHighlighted: isHighlighted ?? this.isHighlighted,
metadata: metadata ?? this.metadata,
);
}