toString method
Returns a string representation of the Node instance, including the
data, the position, the _force and the _velocity.
Implementation
@override
String toString() {
return 'Node{data: $data, position: $position, force: ${_force.length}, velocity: ${_velocity.length}}';
}