copyWith method

NmGraphNodeData copyWith({
  1. String? id,
  2. NmGraphNodeType? type,
  3. String? label,
  4. String? subtitle,
  5. Offset? position,
  6. Offset? velocity,
  7. bool? isFixed,
  8. bool? isSelected,
  9. bool? isHighlighted,
  10. Map<String, dynamic>? metadata,
})

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