Node<T> constructor

Node<T>(
  1. T data, [
  2. Vector2? position
])

Implementation

Node(this.data, [Vector2? position])
    : position = position ?? (Vector2.random() - Vector2(0.5, 0.5)) * 200;