copyWith method

GrafoNode copyWith({
  1. int? id,
  2. Offset? position,
  3. String? name,
  4. Size? size,
  5. bool? selected,
})

Implementation

GrafoNode copyWith(
    {int? id, Offset? position, String? name, Size? size, bool? selected}) {
  return GrafoNode(
      id: id ?? this.id,
      name: name ?? this.name,
      size: size ?? this.size,
      selected: selected ?? this.selected,
      position: position ?? this.position);
}