toString method

  1. @override
String toString()
override

The squared distance between nodes (faster calculation than actual distance)

Implementation

// double get distanceSquared =>
//     position.dx * position.dx + position.dy * position.dy;

@override
String toString() => 'Node(position: $position, hideNodes: $hideNodes)';