copyWith method

GraphPoint copyWith({
  1. ID? id,
  2. double? x,
  3. double? y,
})

Implementation

GraphPoint copyWith({
  ID? id,
  double? x,
  double? y,
}) {
  return GraphPoint(
    id ?? this.id,
    x ?? this.x,
    y ?? this.y,
  );
}